Declaration
in package
implements
Builder
Interfaces, Classes and Traits
Table of Contents
- $attributes : mixed
- addStmt() : mixed
- addStmts() : $this
- Adds multiple statements.
- setDocComment() : $this
- Sets doc comment for the declaration.
Properties
$attributes
protected
mixed
$attributes
= []
Methods
addStmt()
public
abstract addStmt(mixed $stmt) : mixed
Parameters
- $stmt : mixed
Return values
mixed —addStmts()
Adds multiple statements.
public
addStmts(array<string|int, mixed> $stmts) : $this
Parameters
- $stmts : array<string|int, mixed>
-
The statements to add
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)