original_string: protected function addError( $attribute, $rule, array $parameters )
  	{
  		$message = $this->getMessage( $attribute, $rule, $parameters );
  
  		$this->errors[ $attribute ]['errors'][] = $message;
  
  		if( !isset( $this->errors[ $attribute ]['value'] )) {
  			$this->errors[ $attribute ]['value'] = $this->getValue( $attribute );
  		}
  	}
code: protected function addError( $attribute, $rule, array $parameters )
  	{
  		$message = $this->getMessage( $attribute, $rule, $parameters );
  
  		$this->errors[ $attribute ]['errors'][] = $message;
  
  		if( !isset( $this->errors[ $attribute ]['value'] )) {
  			$this->errors[ $attribute ]['value'] = $this->getValue( $attribute );
  		}
  	}
code_tokens: protected function addError ( $ attribute , $ rule , array $ parameters ) { $ message = $ this -> getMessage ( $ attribute , $ rule , $ parameters ) ; $ this -> errors [ $ attribute ] [ 'errors' ] [ ] = $ message ; if ( ! isset ( $ this -> errors [ $ attribute ] [ 'value' ] ) ) { $ this -> errors [ $ attribute ] [ 'value' ] = $ this -> getValue ( $ attribute ) ; } }
docstring: Add an error message to the validator's collection of errors.
  
  @param string $attribute
  @param string $rule
  
  @return void
docstring_tokens: Add an error message to the validator s collection of errors .