| @@ 621-631 (lines=11) @@ | ||
| 618 | * |
|
| 619 | * @return SimpleHtmlDomInterface|null |
|
| 620 | */ |
|
| 621 | public function nextSibling() |
|
| 622 | { |
|
| 623 | /** @var \DOMNode|null $node */ |
|
| 624 | $node = $this->node->nextSibling; |
|
| 625 | ||
| 626 | if ($node === null) { |
|
| 627 | return null; |
|
| 628 | } |
|
| 629 | ||
| 630 | return new static($node); |
|
| 631 | } |
|
| 632 | ||
| 633 | /** |
|
| 634 | * Returns the next sibling of node. |
|
| @@ 606-616 (lines=11) @@ | ||
| 603 | * |
|
| 604 | * @return SimpleXmlDomInterface|null |
|
| 605 | */ |
|
| 606 | public function nextSibling() |
|
| 607 | { |
|
| 608 | /** @var \DOMNode|null $node */ |
|
| 609 | $node = $this->node->nextSibling; |
|
| 610 | ||
| 611 | if ($node === null) { |
|
| 612 | return null; |
|
| 613 | } |
|
| 614 | ||
| 615 | return new static($node); |
|
| 616 | } |
|
| 617 | ||
| 618 | /** |
|
| 619 | * Returns the next sibling of node. |
|