original_string: public function setNodeTypeByKey($id)
      {
          $nodeType = NodeType::findOrFail($id);
  
          $this->nodeType()->associate($nodeType);
  
          $this->mailing = $nodeType->isTypeMailing();
      }
code: public function setNodeTypeByKey($id)
      {
          $nodeType = NodeType::findOrFail($id);
  
          $this->nodeType()->associate($nodeType);
  
          $this->mailing = $nodeType->isTypeMailing();
      }
code_tokens: public function setNodeTypeByKey ( $ id ) { $ nodeType = NodeType :: findOrFail ( $ id ) ; $ this -> nodeType ( ) -> associate ( $ nodeType ) ; $ this -> mailing = $ nodeType -> isTypeMailing ( ) ; }
docstring: Sets the node type by key and validates it
  
  @param int $id
  @return NodeType
docstring_tokens: Sets the node type by key and validates it