| Total Complexity | 11 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class NodeList extends \SplDoublyLinkedList |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * NodeList constructor |
||
| 15 | * |
||
| 16 | * @param Node|null $node (optional) a node that will be pushed as first element |
||
| 17 | */ |
||
| 18 | public function __construct(Node $node = null) |
||
| 19 | { |
||
| 20 | $this->setIteratorMode(NodeList::IT_MODE_KEEP); |
||
| 21 | if (!is_null($node)) { |
||
| 22 | $this->push($node); |
||
| 23 | } |
||
| 24 | } |
||
| 25 | |||
| 26 | public function has(string $nodeType):bool |
||
| 34 | } |
||
| 35 | |||
| 36 | public function hasContent():bool |
||
| 46 | } |
||
| 47 | |||
| 57 |