public function addError($error)
    {
        if (is_array($error)) {
            $this->errors += $error;
        } else {
            $this->errors[] = $error;
        }

        return $this;
    }
public function addError($error)
    {
        if (is_array($error)) {
            $this->errors += $error;
        } else {
            $this->errors[] = $error;
        }

        return $this;
    }
public function addError ( $ error ) { if ( is_array ( $ error ) ) { $ this -> errors += $ error ; } else { $ this -> errors [ ] = $ error ; } return $ this ; }
add an error message to the list

@param mixed $error
@return Result $this
add an error message to the list