Ejemplo n.º 1
0
 /**
  * Returns true if given node is descendant of tag
  *
  * @param EmbeddedTag|Tag $tag
  *
  * @return bool
  */
 public function isDescendantOf($tag)
 {
     if ($tag->getCod() == $this->getCod()) {
         return false;
     }
     return substr($this->getPath(), 0, strlen($tag->getPath())) === $tag->getPath();
 }