abstract
implements
Builder
abstract public
addStmt(Stmt|Builder $stmt): $this
Adds a statement.
The statement to add
The builder instance (for fluid interface)
PhpParser\Builder\Trait_::addStmt()
PhpParser\Builder\Class_::addStmt()
PhpParser\Builder\Interface_::addStmt()
PhpParser\Builder\Function_::addStmt()
PhpParser\Builder\Method::addStmt()
PhpParser\Builder\Namespace_::addStmt()
PhpParser\Builder\Enum_::addStmt()
public
addStmts((Stmt|Builder)[] $stmts): $this
Adds multiple statements.
The statements to add
setDocComment(Doc|string $docComment): $this
Sets doc comment for the declaration.
Doc comment to set
protected
array<string, mixed>
$attributes = []