Documentation

Declaration
in package
implements Builder

AbstractYes

Table of Contents

Interfaces

Builder

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
$stmt : Stmt|Builder

The statement to add

Return values
$this

The builder instance (for fluid interface)

addStmts()

Adds multiple statements.

public addStmts(array<string|int, Stmt|Builder$stmts) : $this
Parameters
$stmts : array<string|int, Stmt|Builder>

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)


        
On this page

Search results