original_string: public function getNodeType()
      {
          $bag = hierarchy_bag('nodetype');
  
          if ($this->relationLoaded('nodeType'))
          {
              $nodeType = $this->getRelation('nodeType');
          } elseif ($nodeType = $bag->getNodeType($this->getNodeTypeKey()))
          {
              $this->setRelation('nodeType', $nodeType);
          } else
          {
              $nodeType = $this->load('nodeType')->getRelation('nodeType');
          }
  
          if ($nodeType)
          {
              $bag->addNodeType($nodeType);
  
              return $nodeType;
          }
  
          return null;
      }
code: public function getNodeType()
      {
          $bag = hierarchy_bag('nodetype');
  
          if ($this->relationLoaded('nodeType'))
          {
              $nodeType = $this->getRelation('nodeType');
          } elseif ($nodeType = $bag->getNodeType($this->getNodeTypeKey()))
          {
              $this->setRelation('nodeType', $nodeType);
          } else
          {
              $nodeType = $this->load('nodeType')->getRelation('nodeType');
          }
  
          if ($nodeType)
          {
              $bag->addNodeType($nodeType);
  
              return $nodeType;
          }
  
          return null;
      }
code_tokens: public function getNodeType ( ) { $ bag = hierarchy_bag ( 'nodetype' ) ; if ( $ this -> relationLoaded ( 'nodeType' ) ) { $ nodeType = $ this -> getRelation ( 'nodeType' ) ; } elseif ( $ nodeType = $ bag -> getNodeType ( $ this -> getNodeTypeKey ( ) ) ) { $ this -> setRelation ( 'nodeType' , $ nodeType ) ; } else { $ nodeType = $ this -> load ( 'nodeType' ) -> getRelation ( 'nodeType' ) ; } if ( $ nodeType ) { $ bag -> addNodeType ( $ nodeType ) ; return $ nodeType ; } return null ; }
docstring: Getter for node type
  
  @return NodeType
docstring_tokens: Getter for node type