| 1 | <?php |
||
| 9 | abstract class Declaration extends PhpParser\BuilderAbstract |
||
| 10 | { |
||
| 11 | protected $attributes = array(); |
||
| 12 | |||
| 13 | abstract public function addStmt($stmt); |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Adds multiple statements. |
||
| 17 | * |
||
| 18 | * @param array $stmts The statements to add |
||
| 19 | * |
||
| 20 | * @return $this The builder instance (for fluid interface) |
||
| 21 | */ |
||
| 22 | public function addStmts(array $stmts) { |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Sets doc comment for the declaration. |
||
| 32 | * |
||
| 33 | * @param PhpParser\Comment\Doc|string $docComment Doc comment to set |
||
| 34 | * |
||
| 35 | * @return $this The builder instance (for fluid interface) |
||
| 36 | */ |
||
| 37 | public function setDocComment($docComment) { |
||
| 44 | } |