Пример #1
0
 /**
  * Get whether the node is a sibling of another node.
  *
  * @param self $other
  *
  * @return bool
  */
 public function isSiblingOf(self $other)
 {
     return $this->getParentId() == $other->getParentId();
 }