Свойство | Type | Description | |
---|---|---|---|
$constants | |||
$extends | |||
$flags | |||
$implements | |||
$methods | |||
$name | |||
$properties | |||
$uses |
Méthode | Description | |
---|---|---|
__construct ( string $name ) | Creates a class builder. | |
addStmt ( PhpParser\Node\Stmt | PhpParser\Builder $stmt ) | Adds a statement. | |
extend ( |
Extends a class. | |
getNode ( ) : |
Returns the built class node. | |
implement ( ) | Implements one or more interfaces. | |
makeAbstract ( ) | Makes the class abstract. | |
makeFinal ( ) | Makes the class final. |
public __construct ( string $name ) | ||
$name | string | Name of the class |
public addStmt ( PhpParser\Node\Stmt | PhpParser\Builder $stmt ) | ||
$stmt | PhpParser\Node\Stmt | PhpParser\Builder | The statement to add |
public getNode ( ) : |
||
Résultat | The built class node |