Свойство | Тип | Описание | |
---|---|---|---|
$flags | |||
$name | |||
$stmts | array | null |
Метод | Описание | |
---|---|---|
__construct ( string $name ) | Creates a method builder. | |
addStmt ( PhpParser\Node | PhpParser\Builder $stmt ) | Adds a statement. | |
getNode ( ) : |
Returns the built method node. | |
makeAbstract ( ) | Makes the method abstract. | |
makeFinal ( ) | Makes the method final. | |
makePrivate ( ) | Makes the method private. | |
makeProtected ( ) | Makes the method protected. | |
makePublic ( ) | Makes the method public. | |
makeStatic ( ) | Makes the method static. |
public __construct ( string $name ) | ||
$name | string | Name of the method |
public addStmt ( PhpParser\Node | PhpParser\Builder $stmt ) | ||
$stmt | PhpParser\Node | PhpParser\Builder | The statement to add |
public getNode ( ) : |
||
Результат | The built method node |