Overtrue\Validation\Validator::__call PHP 메소드

__call() 공개 메소드

Handle dynamic calls to class methods.
public __call ( string $method, array $parameters ) : mixed
$method string
$parameters array
리턴 mixed
    public function __call($method, $parameters)
    {
        $rule = snake_case(substr($method, 8));
        if (isset($this->extensions[$rule])) {
            return $this->callExtension($rule, $parameters);
        }
        throw new \BadMethodCallException("Method [{$method}] does not exist.");
    }
Validator