CREATE_EMPTY
CREATE_EMPTY
Constant to not use a class or interface
Generator code class
$code : \Pop\Code\Generator\ClassGenerator|\Pop\Code\Generator\InterfaceGenerator
Code object
$docblock : \Pop\Code\Generator\DocblockGenerator
Docblock generator object
$namespace : \Pop\Code\Generator\NamespaceGenerator
Namespace generator object
createInterface() : \Pop\Code\Generator
Create a class generator object
createClass() : \Pop\Code\Generator
Create a class generator object
code() : \Pop\Code\Generator\ClassGenerator|\Pop\Code\Generator\InterfaceGenerator
Access the code generator object
setCloseTag(boolean $close = false) : \Pop\Code\Generator
Set the code close tag flag
boolean | $close |
setEnv(string $env = null) : \Pop\Code\Generator
Set the environment
string | $env |
setIndent(string $indent = null) : \Pop\Code\Generator
Set the code indent
string | $indent |
setNamespace(\Pop\Code\Generator\NamespaceGenerator $namespace) : \Pop\Code\Generator
Set the namespace generator object
\Pop\Code\Generator\NamespaceGenerator | $namespace |
getNamespace() : \Pop\Code\Generator\NamespaceGenerator
Access the namespace generator object
setDocblock(\Pop\Code\Generator\DocblockGenerator $docblock) : \Pop\Code\Generator
Set the docblock generator object
\Pop\Code\Generator\DocblockGenerator | $docblock |
getDocblock() : \Pop\Code\Generator\DocblockGenerator
Access the docblock generator object
setBody(string $body, boolean $newline = true) : \Pop\Code\Generator
Set the code body
string | $body | |
boolean | $newline |
appendToBody(string $body, boolean $newline = true) : \Pop\Code\Generator
Append to the code body
string | $body | |
boolean | $newline |
output(boolean $download = false) : \Pop\Code\Generator
Output the code object directly.
boolean | $download |
save(string $to = null, boolean $append = false) : \Pop\Code\Generator
Save the code object to disk.
string | $to | |
boolean | $append |