77/**
88 * Dom node object.
99 */
10- abstract class Node {
10+ abstract class AbstractNode {
1111
1212 /**
1313 * Contains the tag name/type
@@ -124,11 +124,11 @@ public function getParent()
124124 /**
125125 * Sets the parent node.
126126 *
127- * @param Node $parent
127+ * @param AbstractNode $parent
128128 * @chainable
129129 * @throws Exception
130130 */
131- public function setParent (Node $ parent )
131+ public function setParent (AbstractNode $ parent )
132132 {
133133 // check integrity
134134 if ($ this ->isDescendant ($ parent ->id ()))
@@ -190,7 +190,7 @@ public function hasChildren()
190190 * Returns the child by id.
191191 *
192192 * @param int $id
193- * @return Node
193+ * @return AbstractNode
194194 * @throw Exception
195195 */
196196 public function getChild ($ id )
@@ -207,10 +207,10 @@ public function getChild($id)
207207 * Adds a child node to this node and returns the id of the child for this
208208 * parent.
209209 *
210- * @param Node $child
210+ * @param AbstractNode $child
211211 * @return bool
212212 */
213- public function addChild (Node $ child )
213+ public function addChild (AbstractNode $ child )
214214 {
215215 $ key = null ;
216216 $ newKey = 0 ;
@@ -291,7 +291,7 @@ public function removeChild($id)
291291 * Attempts to get the next child.
292292 *
293293 * @param int $id
294- * @return Node
294+ * @return AbstractNode
295295 * @uses $this->getChild()
296296 */
297297 public function nextChild ($ id )
@@ -305,7 +305,7 @@ public function nextChild($id)
305305 * Attempts to get the previous child.
306306 *
307307 * @param int $id
308- * @return Node
308+ * @return AbstractNode
309309 * @uses $this->getChild()
310310 */
311311 public function previousChild ($ id )
@@ -367,7 +367,7 @@ public function isAncestor($id)
367367 * Attempts to get an ancestor node by the given id.
368368 *
369369 * @param int $id
370- * @return null|Node
370+ * @return null|AbstractNode
371371 */
372372 public function getAncestor ($ id )
373373 {
@@ -386,7 +386,7 @@ public function getAncestor($id)
386386 /**
387387 * Shortcut to return the first child.
388388 *
389- * @return Node
389+ * @return AbstractNode
390390 * @uses $this->getChild()
391391 */
392392 public function firstChild ()
@@ -399,7 +399,7 @@ public function firstChild()
399399 /**
400400 * Attempts to get the last child.
401401 *
402- * @return Node
402+ * @return AbstractNode
403403 */
404404 public function lastChild ()
405405 {
@@ -411,7 +411,7 @@ public function lastChild()
411411 /**
412412 * Attempts to get the next sibling.
413413 *
414- * @return Node
414+ * @return AbstractNode
415415 * @throws Exception
416416 */
417417 public function nextSibling ()
@@ -427,7 +427,7 @@ public function nextSibling()
427427 /**
428428 * Attempts to get the previous sibling
429429 *
430- * @return Node
430+ * @return AbstractNode
431431 * @throw Exception
432432 */
433433 public function previousSibling ()
@@ -488,7 +488,7 @@ public function getAttribute($key)
488488 * Function to locate a specific ancestor tag in the path to the root.
489489 *
490490 * @param string $tag
491- * @return Node
491+ * @return AbstractNode
492492 * @throws Exception
493493 */
494494 public function ancestorByTag ($ tag )
0 commit comments