src/Validators/AbstractValidator.php
public function report(string ...$messages): ResultInterface
    {
        if (! empty($messages)) {
            return ResultFactory::makeFailure(
                $this->checker,
                array_merge([$this->failureMessage], $messages)
            );
        }

        return ResultFactory::makeSuccess($this->checker);
    }
public function report(string ...$messages): ResultInterface
    {
        if (! empty($messages)) {
            return ResultFactory::makeFailure(
                $this->checker,
                array_merge([$this->failureMessage], $messages)
            );
        }

        return ResultFactory::makeSuccess($this->checker);
    }
public function report ( string ... $ messages ) : ResultInterface { if ( ! empty ( $ messages ) ) { return ResultFactory :: makeFailure ( $ this -> checker , array_merge ( [ $ this -> failureMessage ] , $ messages ) ) ; } return ResultFactory :: makeSuccess ( $ this -> checker ) ; }
Returns result instance.

TODO: Should I be protected?

@param string|string[] ...$messages Failure message. If empty, assume success.

@return Failure|Success
Returns result instance .