/** * 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(); }