isSelfOrDescendantOf() публичный Метод

Returns true if $otherNode is ourselves or if we are a descendant of $otherNode
public isSelfOrDescendantOf ( TreeModel $otherNode ) : boolean
$otherNode TreeModel
Результат boolean
Пример #1
0
 /**
  * Returns true if $otherNode is ourselves or we are an ancestor of $otherNode
  *
  * @codeCoverageIgnore
  * @param TreeModel $otherNode
  *
  * @return bool
  */
 public function isSelfOrAncestorOf(TreeModel $otherNode)
 {
     return $otherNode->isSelfOrDescendantOf($this);
 }