Copied!
Cloneable Instantiable
Constants
public PhpParser\Builder\TraitUseAdaptation ::TYPE_ALIAS = 1
public PhpParser\Builder\TraitUseAdaptation ::TYPE_PRECEDENCE = 2
public PhpParser\Builder\TraitUseAdaptation ::TYPE_UNDEFINED = 0
Methods
public __construct ( $trait , $method )
 

Creates a trait use adaptation builder.

public as ( $alias )
 

Sets alias of method.

  • return $this The builder instance (for fluid interface)
public getNode () : PhpParser\Node
 

Returns the built node.

  • return Node The built node
public insteadof ( $traits )
 

Adds overwritten traits.

  • return $this The builder instance (for fluid interface)
public makePrivate ()
 

Sets adaptated method private.

  • return $this The builder instance (for fluid interface)
public makeProtected ()
 

Sets adaptated method protected.

  • return $this The builder instance (for fluid interface)
public makePublic ()
 

Sets adaptated method public.

  • return $this The builder instance (for fluid interface)
Properties
protected $alias
protected $insteadof
protected $method
protected $modifier
protected $trait
protected $type
 
  • var int Type of building adaptation
Methods
protected setModifier ( int $modifier )
© 2020 Bruce Wells
Search Namespaces \ Classes
Configuration Numbers (0-9.) only