Property | Type | Description | |
---|---|---|---|
$abstract | boolean | Class abstract flag | |
$docblock | Docblock generator object | ||
$indent | string | Class indent | |
$interface | string | Interface that is implemented | |
$methods | array | Array of method generator objects | |
$name | string | Class name | |
$namespace | Namespace generator object | ||
$output | string | Class output | |
$parent | string | Parent class that is extended | |
$properties | array | Array of property generator objects |
Method | Description | |
---|---|---|
__construct ( string $name, string $parent = null, string $interface = null, boolean $abstract = false ) : |
Constructor | |
__toString ( ) : string | Print method | |
addMethod ( |
Add a class method | |
addProperty ( |
Add a class property | |
factory ( string $name, string $parent = null, string $interface = null, boolean $abstract = false ) : |
Static method to instantiate the class generator object and return itself to facilitate chaining methods together. | |
getDocblock ( ) : |
Access the docblock generator object | |
getIndent ( ) : string | Get the class indent | |
getInterface ( ) : string | Get the class interface | |
getMethod ( mixed $method ) : |
Get a method property | |
getMethods ( ) : array | Get all methods | |
getName ( ) : string | Get the class name | |
getNamespace ( ) : |
Access the namespace generator object | |
getParent ( ) : string | Get the class parent | |
getProperties ( ) : array | Get all properties | |
getProperty ( mixed $property ) : |
Get a class property | |
isAbstract ( ) : boolean | Get the class abstract flag | |
removeMethod ( mixed $method ) : |
Remove a method property | |
removeProperty ( mixed $property ) : |
Remove a class property | |
render ( boolean $ret = false ) : mixed | Render method | |
setAbstract ( boolean $abstract = false ) : |
Set the class abstract flag | |
setDocblock ( |
Set the docblock generator object | |
setIndent ( string $indent = null ) : |
Set the class indent | |
setInterface ( string $interface = null ) : |
Set the class interface | |
setName ( string $name ) : |
Set the class name | |
setNamespace ( |
Set the namespace generator object | |
setParent ( string $parent = null ) : |
Set the class parent |
Method | Description | |
---|---|---|
formatMethods ( ) : string | Method to format the methods | |
formatProperties ( ) : string | Method to format the properties |
public addMethod ( |
||
$method | ||
return |
public addProperty ( |
||
$property | ||
return |
protected formatMethods ( ) : string | ||
return | string |
protected formatProperties ( ) : string | ||
return | string |
public getDocblock ( ) : |
||
return |
public getNamespace ( ) : |
||
return |
public getProperty ( mixed $property ) : |
||
$property | mixed | |
return |
public isAbstract ( ) : boolean | ||
return | boolean |
public removeMethod ( mixed $method ) : |
||
$method | mixed | |
return |
public removeProperty ( mixed $property ) : |
||
$property | mixed | |
return |
public setAbstract ( boolean $abstract = false ) : |
||
$abstract | boolean | |
return |
public setDocblock ( |
||
$docblock | ||
return |
public setInterface ( string $interface = null ) : |
||
$interface | string | |
return |
public setNamespace ( |
||
$namespace | ||
return |
protected DocblockGenerator,Pop\Code\Generator $docblock | ||
return |
protected string $interface | ||
return | string |
protected array $methods | ||
return | array |
protected NamespaceGenerator,Pop\Code\Generator $namespace | ||
return |
protected array $properties | ||
return | array |