/** * Retorna se o model e filho do informado via parametro. * * @param TreeModel $parent * * @return bool */ public function isChild(TreeModel $parent) { return $this->left > $parent->getLeft() && $this->right < $parent->getRight(); }