Copied!
Cloneable Instantiable
Methods
public __construct ( $traits )
 

Creates a trait use builder.

  • param Node\Name | string $traits Names of used traits
public and ( $trait )
 

Adds used trait.

  • param Node\Name | string $trait Trait name
  • return $this The builder instance (for fluid interface)
public getNode () : PhpParser\Node
 

Returns the built node.

  • return Node The built node
public with ( $adaptation )
 

Adds trait adaptation.

  • param Stmt\TraitUseAdaptation | Builder\TraitUseAdaptation $adaptation Trait adaptation
  • return $this The builder instance (for fluid interface)
Properties
protected $adaptations
protected $traits
© 2021 Bruce Wells
Search Namespaces \ Classes
Configuration