original_string: public function getError($attribute)
      {
          $result = null;
  
          if ($this->isErrorExists($attribute)) {
              $result = $this->errors[$attribute];
          }
  
          return $result;
      }
code: public function getError($attribute)
      {
          $result = null;
  
          if ($this->isErrorExists($attribute)) {
              $result = $this->errors[$attribute];
          }
  
          return $result;
      }
code_tokens: public function getError ( $ attribute ) { $ result = null ; if ( $ this -> isErrorExists ( $ attribute ) ) { $ result = $ this -> errors [ $ attribute ] ; } return $ result ; }
docstring: Get error by attribute name
  
  @param string $attribute
  @return string
docstring_tokens: Get error by attribute name