Copied!
Abstract
Methods
public abstract addStmt( $stmt)
 

Adds a statement.

  • param \PhpParser\Node\Stmt|\PhpParser\Builder $stmt The statement to add
  • return $this The builder instance (for fluid interface)
public addStmts(array $stmts)
 

Adds multiple statements.

  • param (\PhpParser\Node\Stmt|\PhpParser\Builder)[] $stmts The statements to add
  • return $this The builder instance (for fluid interface)
public abstract PhpParser\Builder::getNode() : PhpParser\Node
 

Returns the built node.

  • return \Node The built node
public setDocComment( $docComment)
 

Sets doc comment for the declaration.

  • param \PhpParser\Comment\Doc|string $docComment Doc comment to set
  • return $this The builder instance (for fluid interface)
Properties
protected array $attributes = []
 
  • var array<string,mixed>
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration