Copied!
CloneableInstantiable
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 array $adaptations = []
 
  • var \Stmt\TraitUseAdaptation[]
protected array $traits = []
 
  • var \Node\Name[]
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration