| 1 | <?php |
||
| 5 | class NodeCollection extends \ArrayObject |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Allows array methods to be called on object |
||
| 9 | * |
||
| 10 | * @param $func |
||
| 11 | * @param $argv |
||
| 12 | * @return mixed |
||
| 13 | * @throws \BadMethodCallException |
||
| 14 | */ |
||
| 15 | 6 | public function __call($func, $argv) |
|
| 22 | |||
| 23 | /** |
||
| 24 | * @return array |
||
| 25 | */ |
||
| 26 | 3 | public function text() |
|
| 36 | |||
| 37 | /** |
||
| 38 | * @param string $name |
||
| 39 | * @param string|null $value |
||
| 40 | * @return array |
||
| 41 | */ |
||
| 42 | 3 | public function attr($name, $value = null) |
|
| 52 | } |
||
| 53 |