$uses
$uses : array
Array of namespaces to use
Trait generator class
$namespace : \Pop\Code\Generator\NamespaceGenerator
Namespace generator object
$docblock : \Pop\Code\Generator\DocblockGenerator
Docblock generator object
addUse(string $use, string $as = null) : \Pop\Code\Generator\Traits\UseTrait
Add a namespace to use
string | $use | |
string | $as |
addUses(array $uses) : \Pop\Code\Generator\Traits\UseTrait
Add namespaces to use
array | $uses |
addProperties(array $properties) : \Pop\Code\Generator\Traits\PropertiesTrait
Add class properties
array | $properties |
addProperty(\Pop\Code\Generator\PropertyGenerator $property) : \Pop\Code\Generator\Traits\PropertiesTrait
Add a class property
\Pop\Code\Generator\PropertyGenerator | $property |
getProperty(mixed $property) : \Pop\Code\Generator\PropertyGenerator
Get a class property
mixed | $property |
removeProperty(mixed $property) : \Pop\Code\Generator\Traits\PropertiesTrait
Remove a class property
mixed | $property |
addConstants(array $constants) : \Pop\Code\Generator\AbstractClassGenerator
Add constants
array | $constants |
addConstant(\Pop\Code\Generator\ConstantGenerator $constant) : \Pop\Code\Generator\AbstractClassGenerator
Add a constant
\Pop\Code\Generator\ConstantGenerator | $constant |
getConstant(mixed $constant) : \Pop\Code\Generator\ConstantGenerator
Get a constant
mixed | $constant |
removeConstant(mixed $constant) : \Pop\Code\Generator\AbstractClassGenerator
Remove a constant
mixed | $constant |
addMethods(array $methods) : \Pop\Code\Generator\AbstractClassGenerator
Add methods
array | $methods |
addMethod(\Pop\Code\Generator\MethodGenerator $method) : \Pop\Code\Generator\AbstractClassGenerator
Add a method
\Pop\Code\Generator\MethodGenerator | $method |
getMethod(mixed $method) : \Pop\Code\Generator\MethodGenerator
Get a method
mixed | $method |
removeMethod(mixed $method) : \Pop\Code\Generator\AbstractClassGenerator
Remove a method
mixed | $method |
setName(string $name) : \Pop\Code\Generator\Traits\NameTrait
Set the name
string | $name |
setNamespace(\Pop\Code\Generator\NamespaceGenerator $namespace) : \Pop\Code\Generator\Traits\NamespaceTrait
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\Traits\DocblockTrait
Set the docblock generator object
\Pop\Code\Generator\DocblockGenerator | $docblock |
getDocblock() : \Pop\Code\Generator\DocblockGenerator
Access the docblock generator object
setDesc(string $desc = null) : \Pop\Code\Generator\Traits\DocblockTrait
Set the docblock description
string | $desc |
setIndent(string $indent) : \Pop\Code\Generator\AbstractGenerator
Set the indent
string | $indent |