| 1 | <?php |
||
| 5 | class Node |
||
| 6 | { |
||
| 7 | public $node; |
||
| 8 | |||
| 9 | 39 | public function __construct(\DOMNode $node) |
|
| 13 | |||
| 14 | /** |
||
| 15 | * @return string |
||
| 16 | */ |
||
| 17 | 6 | public function toString() |
|
| 21 | |||
| 22 | /** |
||
| 23 | * @param string $name |
||
| 24 | * @param string|null $value |
||
| 25 | * @return string |
||
| 26 | * @throws \Exception |
||
| 27 | */ |
||
| 28 | 15 | public function attr($name, $value = null) |
|
| 40 | |||
| 41 | /** |
||
| 42 | * @return string |
||
| 43 | */ |
||
| 44 | 6 | public function text() |
|
| 48 | |||
| 49 | /** |
||
| 50 | * |
||
| 51 | */ |
||
| 52 | 3 | public function remove() |
|
| 56 | |||
| 57 | /** |
||
| 58 | * @param string $class |
||
| 59 | * @return bool |
||
| 60 | * @throws \Exception |
||
| 61 | */ |
||
| 62 | 3 | public function hasClass($class) |
|
| 68 | } |
||
| 69 |