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