Zend Framework
3.0
|
Public Member Functions | |
__construct ($options=null) | |
Passes $options to setOptions(). | |
setDocBlock ($docBlock) | |
getDocBlock () | |
setRequiredFiles (array $requiredFiles) | |
getRequiredFiles () | |
getNamespace () | |
setNamespace ($namespace) | |
getUses ($withResolvedAs=false) | |
Returns an array with the first element the use statement, second is the as part. | |
setUses (array $uses) | |
setUse ($use, $as=null) | |
setClasses (array $classes) | |
getClass ($name=null) | |
setClass ($class) | |
setFilename ($filename) | |
getFilename () | |
getClasses () | |
setBody ($body) | |
getBody () | |
isSourceDirty () | |
generate () | |
write () | |
Public Member Functions inherited from AbstractGenerator | |
__construct ($options=[]) | |
setSourceDirty ($isSourceDirty=true) | |
isSourceDirty () | |
setIndentation ($indentation) | |
getIndentation () | |
setSourceContent ($sourceContent) | |
getSourceContent () | |
setOptions ($options) | |
Static Public Member Functions | |
static | fromReflectedFileName ($filePath, $includeIfNotAlreadyIncluded=true) |
Use this if you intend on generating code generation objects based on the same file. | |
static | fromReflection (FileReflection $fileReflection) |
static | fromArray (array $values) |
Protected Attributes | |
$filename = null | |
$docBlock = null | |
$requiredFiles = [] | |
$namespace = null | |
$uses = [] | |
$classes = [] | |
$body = null | |
Protected Attributes inherited from AbstractGenerator | |
$isSourceDirty = true | |
$indentation = ' ' | |
$sourceContent = null | |
Additional Inherited Members | |
Public Attributes inherited from AbstractGenerator | |
const | LINE_FEED = "\n" |
Line feed to use in place of EOL. | |
__construct | ( | $options = null | ) |
Passes $options to setOptions().
array | \Traversable | $options |
|
static |
array | $values |
|
static |
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
string | $filePath | |
bool | $includeIfNotAlreadyIncluded |
ReflectionException\InvalidArgumentException | If file does not exists |
ReflectionException\RuntimeException | If file exists but is not included or required |
|
static |
FileReflection | $fileReflection |
generate | ( | ) |
Implements GeneratorInterface.
getBody | ( | ) |
getClass | ( | $name = null | ) |
string | $name |
getClasses | ( | ) |
getDocBlock | ( | ) |
getFilename | ( | ) |
getNamespace | ( | ) |
getRequiredFiles | ( | ) |
getUses | ( | $withResolvedAs = false | ) |
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
bool | $withResolvedAs |
isSourceDirty | ( | ) |
setBody | ( | $body | ) |
string | $body |
setClass | ( | $class | ) |
array | string | ClassGenerator | $class |
Exception\InvalidArgumentException |
setClasses | ( | array | $classes | ) |
array | $classes |
setDocBlock | ( | $docBlock | ) |
DocBlockGenerator | array | string | $docBlock |
Exception\InvalidArgumentException |
setFilename | ( | $filename | ) |
string | $filename |
setNamespace | ( | $namespace | ) |
string | $namespace |
setRequiredFiles | ( | array | $requiredFiles | ) |
array | $requiredFiles |
setUse | ( | $use, | |
$as = null |
|||
) |
string | $use | |
null | string | $as |
setUses | ( | array | $uses | ) |
array | $uses |
write | ( | ) |
Exception\RuntimeException |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |