__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
stringgetBody() : string
stringgetClasses() : \Zend\Code\Generator\ClassGenerator[]
getDocBlock() : \Zend\Code\Generator\DocBlockGenerator
getFilename() : string
stringgetIndentation() : string
| inherited_from | \Zend\Code\Generator\AbstractGenerator::getIndentation() |
|---|
stringgetNamespace() : string
stringgetRequiredFiles() : array
arraygetSourceContent() : string
| inherited_from | \Zend\Code\Generator\AbstractGenerator::getSourceContent() |
|---|
stringgetUses(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
arrayisSourceDirty() : bool
boolsetClass(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 |
|---|