[ Index ]

PHP Cross Reference of phpBB-3.3.3-deutsch

title

Body

[close]

/vendor/zendframework/zend-code/src/Generator/ -> FileGenerator.php (summary)

Zend Framework (http://framework.zend.com/)

Copyright: Copyright (c) 2005-2016 Zend Technologies USA Inc. (http://www.zend.com)
License: http://framework.zend.com/license/new-bsd New BSD License
File Size: 644 lines (18 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

FileGenerator:: (25 methods):
  __construct()
  fromReflectedFileName()
  fromReflection()
  fromArray()
  setDocBlock()
  getDocBlock()
  setRequiredFiles()
  getRequiredFiles()
  getNamespace()
  setNamespace()
  getUses()
  setUses()
  setUse()
  setClasses()
  getClass()
  setClass()
  setFilename()
  getFilename()
  getClasses()
  setBody()
  getBody()
  setDeclares()
  isSourceDirty()
  generate()
  write()


Class: FileGenerator  - X-Ref

__construct($options = null)   X-Ref
Passes $options to {@link setOptions()}.

param: array|\Traversable $options

fromReflectedFileName($filePath, $includeIfNotAlreadyIncluded = true)   X-Ref
Use this if you intend on generating code generation objects based on the same file.
This will keep previous changes to the file in tact during the same PHP process

return: FileGenerator
param: string $filePath
param: bool $includeIfNotAlreadyIncluded

fromReflection(FileReflection $fileReflection)   X-Ref

return: FileGenerator
param: FileReflection $fileReflection

fromArray(array $values)   X-Ref

return: FileGenerator
param: array $values

setDocBlock($docBlock)   X-Ref

return: FileGenerator
param: DocBlockGenerator|array|string $docBlock

getDocBlock()   X-Ref

return: DocBlockGenerator

setRequiredFiles(array $requiredFiles)   X-Ref

return: FileGenerator
param: array $requiredFiles

getRequiredFiles()   X-Ref

return: array

getNamespace()   X-Ref

return: string

setNamespace($namespace)   X-Ref

return: FileGenerator
param: string $namespace

getUses($withResolvedAs = false)   X-Ref
Returns an array with the first element the use statement, second is the as part.
If $withResolvedAs is set to true, there will be a third element that is the
"resolved" as statement, as the second part is not required in use statements

return: array
param: bool $withResolvedAs

setUses(array $uses)   X-Ref

return: FileGenerator
param: array $uses

setUse($use, $as = null)   X-Ref

return: FileGenerator
param: string $use
param: null|string $as

setClasses(array $classes)   X-Ref

return: FileGenerator
param: array $classes

getClass($name = null)   X-Ref

return: ClassGenerator
param: string $name

setClass($class)   X-Ref

return: FileGenerator
param: array|string|ClassGenerator $class

setFilename($filename)   X-Ref

return: FileGenerator
param: string $filename

getFilename()   X-Ref

return: string

getClasses()   X-Ref

return: ClassGenerator[]

setBody($body)   X-Ref

return: FileGenerator
param: string $body

getBody()   X-Ref

return: string

setDeclares(array $declares)   X-Ref
No description

isSourceDirty()   X-Ref

return: bool

generate()   X-Ref

return: string

write()   X-Ref

return: FileGenerator



Generated: Sun Feb 14 20:08:31 2021 Cross-referenced by PHPXref 0.7.1