PHP Class PhpParser\Builder\Declaration

Inheritance: extends PhpParser\BuilderAbstract
Afficher le fichier Open project: nikic/php-parser

Protected Properties

Свойство Type Description
$attributes

Méthodes publiques

Méthode 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 méthode

abstract public addStmt ( $stmt )

addStmts() public méthode

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

setDocComment() public méthode

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