__construct()
fromArray()
fromReflectedFileName()
fromReflection()
generate()
getBody()
getClass()
getClasses()
getDocBlock()
getFilename()
getIndentation()
getNamespace()
getRequiredFiles()
getSourceContent()
getUses()
isSourceDirty()
setBody()
setClass()
setClasses()
setDocBlock()
setFilename()
setIndentation()
setNamespace()
setOptions()
setRequiredFiles()
setSourceContent()
setSourceDirty()
setUse()
setUses()
write()
$body
$classes
$docBlock
$filename
$indentation
$isSourceDirty
$namespace
$requiredFiles
$sourceContent
$uses
LINE_FEED
__construct(array | \Traversable $options)
array\Traversable
fromReflectedFileName(string $filePath, bool $includeIfNotAlreadyIncluded) : \Zend\Code\Generator\FileGenerator
This will keep previous changes to the file in tact during the same PHP process
string
bool
\Zend\Code\Reflection\Exception\InvalidArgumentException |
If file does not exists |
---|---|
\Zend\Code\Reflection\Exception\RuntimeException |
If file exists but is not included or required |
fromReflection(\Zend\Code\Reflection\FileReflection $fileReflection) : \Zend\Code\Generator\FileGenerator
generate() : string
string
getBody() : string
string
getClasses() : \Zend\Code\Generator\ClassGenerator[]
getDocBlock() : \Zend\Code\Generator\DocBlockGenerator
getFilename() : string
string
getIndentation() : string
inherited_from | \Zend\Code\Generator\AbstractGenerator::getIndentation() |
---|
string
getNamespace() : string
string
getRequiredFiles() : array
array
getSourceContent() : string
inherited_from | \Zend\Code\Generator\AbstractGenerator::getSourceContent() |
---|
string
getUses(bool $withResolvedAs) : array
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
bool
array
isSourceDirty() : bool
bool
setClass(array | string | \Zend\Code\Generator\ClassGenerator $class) : \Zend\Code\Generator\FileGenerator
arraystring\Zend\Code\Generator\ClassGenerator
\Zend\Code\Generator\Exception\InvalidArgumentException |
---|
setDocBlock(\Zend\Code\Generator\DocBlockGenerator | array | string $docBlock) : \Zend\Code\Generator\FileGenerator
\Zend\Code\Generator\DocBlockGeneratorarraystring
\Zend\Code\Generator\Exception\InvalidArgumentException |
---|
setIndentation(string $indentation) : \Zend\Code\Generator\AbstractGenerator
inherited_from | \Zend\Code\Generator\AbstractGenerator::setIndentation() |
---|
string
setOptions(array | \Traversable $options) : \Zend\Code\Generator\AbstractGenerator
inherited_from | \Zend\Code\Generator\AbstractGenerator::setOptions() |
---|
array\Traversable
\Zend\Code\Generator\Exception\InvalidArgumentException |
---|
setSourceContent(string $sourceContent) : \Zend\Code\Generator\AbstractGenerator
inherited_from | \Zend\Code\Generator\AbstractGenerator::setSourceContent() |
---|
string
setSourceDirty(bool $isSourceDirty) : \Zend\Code\Generator\AbstractGenerator
inherited_from | \Zend\Code\Generator\AbstractGenerator::setSourceDirty() |
---|
bool
write() : \Zend\Code\Generator\FileGenerator
$body : string
$classes : array
$filename : string
$indentation : int | string
inherited_from | \Zend\Code\Generator\AbstractGenerator::$$indentation |
---|
$isSourceDirty : bool
inherited_from | \Zend\Code\Generator\AbstractGenerator::$$isSourceDirty |
---|
$namespace : string
$requiredFiles : array
$sourceContent : string
inherited_from | \Zend\Code\Generator\AbstractGenerator::$$sourceContent |
---|
$uses : array
LINE_FEED
inherited_from | \Zend\Code\Generator\AbstractGenerator::LINE_FEED |
---|