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 adaptated trait
|
$method |
Name of adaptated method
|
|
#
|
public
|
as(Identifier|string $alias): $this
Sets alias of method.
Parameters
$alias |
Alias for adaptated method
|
Returns
The builder instance (for fluid interface)
|
#
|
public
|
makePublic(): $this
Sets adaptated method public.
Sets adaptated method public.
Returns
The builder instance (for fluid interface)
|
#
|
public
|
makeProtected(): $this
Sets adaptated method protected.
Sets adaptated method protected.
Returns
The builder instance (for fluid interface)
|
#
|
public
|
makePrivate(): $this
Sets adaptated method private.
Sets adaptated 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)
|
#
|
public
|
getNode(): Node
Returns the built node.
|
#
|