| 1 | <?php |
||
| 21 | class BlockDirective extends Directive implements DirectiveInterface |
||
| 22 | { |
||
| 23 | private $directives = []; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Adds a Directive at the end of the list. |
||
| 27 | * |
||
| 28 | * @param DirectiveInterface $directive a directive to add |
||
| 29 | */ |
||
| 30 | public function add(DirectiveInterface $directive) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Confirms if the directive contains a specified directive. |
||
| 39 | * |
||
| 40 | * @param string $name the directive for which to check existence |
||
| 41 | * |
||
| 42 | * @return bool true if the sub-directive exists, false otherwise |
||
| 43 | */ |
||
| 44 | public function hasDirective($name) |
||
| 60 | |||
| 61 | public function isSimple() |
||
| 65 | } |
||
| 66 |