Declaration
in package
implements
Builder
AbstractYes
Table of Contents
Interfaces
Properties
- $attributes : array<string, mixed>
Methods
- addStmt() : $this
- Adds a statement.
- addStmts() : $this
- Adds multiple statements.
- setDocComment() : $this
- Sets doc comment for the declaration.
Properties
$attributes
protected
array<string, mixed>
$attributes
= []
Methods
addStmt()
Adds a statement.
public
abstract addStmt(Stmt|Builder $stmt) : $this
Parameters
Return values
$this —The builder instance (for fluid interface)
addStmts()
Adds multiple statements.
public
addStmts(array<string|int, Stmt|Builder> $stmts) : $this
Parameters
Return values
$this —The builder instance (for fluid interface)
setDocComment()
Sets doc comment for the declaration.
public
setDocComment(Doc|string $docComment) : $this
Parameters
- $docComment : Doc|string
-
Doc comment to set
Return values
$this —The builder instance (for fluid interface)