프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 |