Methods |
public
|
__construct(Name|string|null $trait, Identifier|string $method)
Creates a trait use adaptation builder.
Creates a trait use adaptation builder.
Parameters
$trait |
Name of adapted trait
|
$method |
Name of adapted method
|
|
#
|
public
|
as(Identifier|string $alias): $this
Sets alias of method.
Parameters
$alias |
Alias for adapted method
|
Returns
The builder instance (for fluid interface)
|
#
|
public
|
makePublic(): $this
Sets adapted method public.
Sets adapted method public.
Returns
The builder instance (for fluid interface)
|
#
|
public
|
makeProtected(): $this
Sets adapted method protected.
Sets adapted method protected.
Returns
The builder instance (for fluid interface)
|
#
|
public
|
makePrivate(): $this
Sets adapted method private.
Sets adapted method private.
Returns
The builder instance (for fluid interface)
|
#
|
public
|
insteadof(Name|string ...$traits): $this
Adds overwritten traits.
Parameters
...$traits |
Traits for overwrite
|
Returns
The builder instance (for fluid interface)
|
#
|
protected
|
setModifier(int $modifier): void
|
#
|
public
|
getNode(): Node
Returns the built node.
|
#
|