PHP Class PhpParser\Builder\Declaration

Inheritance: extends PhpParser\BuilderAbstract
Datei anzeigen Open project: nikic/php-parser

Protected Properties

Property Type Description
$attributes

Public Methods

Method Description
addStmt ( $stmt )
addStmts ( array $stmts ) Adds multiple statements.
setDocComment ( PhpParser\Comment\Doc | string $docComment ) Sets doc comment for the declaration.

Method Details

addStmt() abstract public method

abstract public addStmt ( $stmt )

addStmts() public method

Adds multiple statements.
public addStmts ( array $stmts )
$stmts array The statements to add

setDocComment() public method

Sets doc comment for the declaration.
public setDocComment ( PhpParser\Comment\Doc | string $docComment )
$docComment PhpParser\Comment\Doc | string Doc comment to set

Property Details

$attributes protected_oe property

protected $attributes