original_string: public function isChildOf($node) {
          $result = $this->owner->getAttribute($this->leftAttribute) > $node->getAttribute($this->leftAttribute) && $this->owner->getAttribute($this->rightAttribute) < $node->getAttribute($this->rightAttribute);
  
          if ($result && $this->treeAttribute !== false) {
              $result = $this->owner->getAttribute($this->treeAttribute) === $node->getAttribute($this->treeAttribute);
          }
  
          return $result;
      }
code: public function isChildOf($node) {
          $result = $this->owner->getAttribute($this->leftAttribute) > $node->getAttribute($this->leftAttribute) && $this->owner->getAttribute($this->rightAttribute) < $node->getAttribute($this->rightAttribute);
  
          if ($result && $this->treeAttribute !== false) {
              $result = $this->owner->getAttribute($this->treeAttribute) === $node->getAttribute($this->treeAttribute);
          }
  
          return $result;
      }
code_tokens: public function isChildOf ( $ node ) { $ result = $ this -> owner -> getAttribute ( $ this -> leftAttribute ) > $ node -> getAttribute ( $ this -> leftAttribute ) && $ this -> owner -> getAttribute ( $ this -> rightAttribute ) < $ node -> getAttribute ( $ this -> rightAttribute ) ; if ( $ result && $ this -> treeAttribute !== false ) { $ result = $ this -> owner -> getAttribute ( $ this -> treeAttribute ) === $ node -> getAttribute ( $ this -> treeAttribute ) ; } return $ result ; }
docstring: Determines whether the node is child of the parent node.
  @param ActiveRecord $node the parent node
  @return boolean whether the node is child of the parent node
docstring_tokens: Determines whether the node is child of the parent node .