@@ 45-52 (lines=8) @@ | ||
42 | /** |
|
43 | * @return null|AttributeNode |
|
44 | */ |
|
45 | public function previousSibling() |
|
46 | { |
|
47 | if (null === $parent = $this->parent) { |
|
48 | return null; |
|
49 | } |
|
50 | ||
51 | return $this->getSibling($parent->getAttributes(), -1); |
|
52 | } |
|
53 | ||
54 | /** |
|
55 | * @return null|AttributeNode |
|
@@ 57-64 (lines=8) @@ | ||
54 | /** |
|
55 | * @return null|AttributeNode |
|
56 | */ |
|
57 | public function nextSibling() |
|
58 | { |
|
59 | if (null === $parent = $this->parent) { |
|
60 | return null; |
|
61 | } |
|
62 | ||
63 | return $this->getSibling($parent->getAttributes(), 1); |
|
64 | } |
|
65 | } |
|
66 |