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