CloneableInstantiable
Methods |
public __construct( $name) Creates a namespace builder.
|
public addStmt( $stmt) Adds a statement.
|
public getNode() : PhpParser Returns the built node.
|
Properties |
Properties |
private ?PhpParser |
private array $stmts = []
|
Methods |
public __construct( $name) Creates a namespace builder.
|
public addStmt( $stmt) Adds a statement.
|
public PhpParser\Builder\Declaration::addStmts(array $stmts) Adds multiple statements.
|
public getNode() : PhpParser Returns the built node.
|
public PhpParser\Builder\Declaration::setDocComment( $docComment) Sets doc comment for the declaration.
|
Properties |
protected array PhpParser\Builder\Declaration::$attributes = []
|
Properties |
private ?PhpParser |
private array $stmts = []
|