コード例 #1
0
ファイル: NodeTrait.php プロジェクト: nutsdo/nong-store
 /**
  * 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();
 }