function Declaration::addStmt
Adds a statement.
Parameters
PhpParser\Node\Stmt|PhpParser\Builder $stmt The statement to add:
Return value
$this The builder instance (for fluid interface)
1 call to Declaration::addStmt()
- Declaration::addStmts in vendor/
nikic/ php-parser/ lib/ PhpParser/ Builder/ Declaration.php - Adds multiple statements.
7 methods override Declaration::addStmt()
- Class_::addStmt in vendor/
nikic/ php-parser/ lib/ PhpParser/ Builder/ Class_.php - Adds a statement.
- Enum_::addStmt in vendor/
nikic/ php-parser/ lib/ PhpParser/ Builder/ Enum_.php - Adds a statement.
- Function_::addStmt in vendor/
nikic/ php-parser/ lib/ PhpParser/ Builder/ Function_.php - Adds a statement.
- Interface_::addStmt in vendor/
nikic/ php-parser/ lib/ PhpParser/ Builder/ Interface_.php - Adds a statement.
- Method::addStmt in vendor/
nikic/ php-parser/ lib/ PhpParser/ Builder/ Method.php - Adds a statement.
File
-
vendor/
nikic/ php-parser/ lib/ PhpParser/ Builder/ Declaration.php, line 19
Class
Namespace
PhpParser\BuilderCode
public abstract function addStmt($stmt);