메소드 |
설명 |
|
__construct ( string $name, string $parent = null, string $interface = null, boolean $abstract = false ) : ClassGenerator |
Constructor |
|
__toString ( ) : string |
Print method |
|
addMethod ( MethodGenerator $method ) : ClassGenerator |
Add a class method |
|
addProperty ( PropertyGenerator $property ) : ClassGenerator |
Add a class property |
|
factory ( string $name, string $parent = null, string $interface = null, boolean $abstract = false ) : ClassGenerator |
Static method to instantiate the class generator object and return itself
to facilitate chaining methods together. |
|
getDocblock ( ) : DocblockGenerator |
Access the docblock generator object |
|
getIndent ( ) : string |
Get the class indent |
|
getInterface ( ) : string |
Get the class interface |
|
getMethod ( mixed $method ) : MethodGenerator |
Get a method property |
|
getMethods ( ) : array |
Get all methods |
|
getName ( ) : string |
Get the class name |
|
getNamespace ( ) : NamespaceGenerator |
Access the namespace generator object |
|
getParent ( ) : string |
Get the class parent |
|
getProperties ( ) : array |
Get all properties |
|
getProperty ( mixed $property ) : PropertyGenerator |
Get a class property |
|
isAbstract ( ) : boolean |
Get the class abstract flag |
|
removeMethod ( mixed $method ) : ClassGenerator |
Remove a method property |
|
removeProperty ( mixed $property ) : ClassGenerator |
Remove a class property |
|
render ( boolean $ret = false ) : mixed |
Render method |
|
setAbstract ( boolean $abstract = false ) : ClassGenerator |
Set the class abstract flag |
|
setDocblock ( DocblockGenerator $docblock ) : ClassGenerator |
Set the docblock generator object |
|
setIndent ( string $indent = null ) : ClassGenerator |
Set the class indent |
|
setInterface ( string $interface = null ) : ClassGenerator |
Set the class interface |
|
setName ( string $name ) : ClassGenerator |
Set the class name |
|
setNamespace ( NamespaceGenerator $namespace ) : ClassGenerator |
Set the namespace generator object |
|
setParent ( string $parent = null ) : ClassGenerator |
Set the class parent |
|