Property | Type | Description | |
---|---|---|---|
$allowed | array | Array of allowed file types. | |
$body | string | Code body | |
$close | boolean | Flag to close the code file with ?> | |
$code | Code object | ||
$docblock | Docblock generator object | ||
$indent | string | Code indent | |
$namespace | Namespace generator object |
Method | Description | |
---|---|---|
__construct ( string $file, integer $type = Generator::CREATE_NONE ) : |
Constructor | |
appendToBody ( string $body, boolean $newline = true ) : |
Append to the code body | |
code ( ) : |
Access the code generator object | |
createClass ( ) : |
Create a class generator object | |
createInterface ( ) : |
Create a class generator object | |
getBody ( ) : string | Get the method body | |
getDocblock ( ) : |
Access the docblock generator object | |
getIndent ( ) : string | Get the code indent | |
getNamespace ( ) : |
Access the namespace generator object | |
output ( boolean $download = false ) : |
Output the code object directly. | |
render ( boolean $ret = false ) : mixed | Render method | |
save ( string $to = null, boolean $append = false ) : void | Save the code object to disk. | |
setBody ( string $body, boolean $newline = true ) : |
Set the code body | |
setClose ( boolean $close = false ) : |
Set the code close flag | |
setDocblock ( |
Set the docblock generator object | |
setIndent ( string $indent = null ) : |
Set the code indent | |
setNamespace ( |
Set the namespace generator object |
public __construct ( string $file, integer $type = Generator::CREATE_NONE ) : |
||
$file | string | |
$type | integer | |
return |
public appendToBody ( string $body, boolean $newline = true ) : |
||
$body | string | |
$newline | boolean | |
return |
public code ( ) : |
||
return |
public createClass ( ) : |
||
return |
public createInterface ( ) : |
||
return |
public getDocblock ( ) : |
||
return |
public getNamespace ( ) : |
||
return |
public setDocblock ( |
||
$docblock | ||
return |
public setNamespace ( |
||
$namespace | ||
return |
protected bool $close | ||
return | boolean |
protected ClassGenerator,Pop\Code\Generator|InterfaceGenerator,Pop\Code\Generator $code | ||
return |
protected DocblockGenerator,Pop\Code\Generator $docblock | ||
return |