Methods |
public
|
__construct(string $name)
Creates a class builder.
|
#
|
public
|
extend(Name|string $class): $this
Extends a class.
Parameters
$class |
Name of class to extend
|
Returns
The builder instance (for fluid interface)
|
#
|
public
|
implement(Name|string ...$interfaces): $this
Implements one or more interfaces.
Implements one or more interfaces.
Parameters
...$interfaces |
Names of interfaces to implement
|
Returns
The builder instance (for fluid interface)
|
#
|
public
|
makeAbstract(): $this
Makes the class abstract.
Makes the class abstract.
Returns
The builder instance (for fluid interface)
|
#
|
public
|
makeFinal(): $this
Makes the class final.
Returns
The builder instance (for fluid interface)
|
#
|
public
|
makeReadonly()
|
#
|
public
|
addStmt(Stmt|Builder $stmt): $this
Adds a statement.
Parameters
$stmt |
The statement to add
|
Returns
The builder instance (for fluid interface)
Implements
|
#
|
public
|
addAttribute(Attribute|AttributeGroup $attribute): $this
Adds an attribute group.
Returns
The builder instance (for fluid interface)
|
#
|
public
|
getNode(): Class_
Returns the built class node.
Returns the built class node.
Returns
Implements
|
#
|