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