original_string: protected function addError($name, $customMessage = null)
      {
          $this->errors[$name] = $customMessage ?: $this->message ?: $this->{$name . 'Message'};
      }
code: protected function addError($name, $customMessage = null)
      {
          $this->errors[$name] = $customMessage ?: $this->message ?: $this->{$name . 'Message'};
      }
code_tokens: protected function addError ( $ name , $ customMessage = null ) { $ this -> errors [ $ name ] = $ customMessage ? : $ this -> message ? : $ this -> { $ name . 'Message' } ; }
docstring: Adds error definition
  
  @param string $name The name of error
  @param string $customMessage The custom error message
docstring_tokens: Adds error definition