public function isValid($value, array $fields = []): bool
    {
        $callback = new Callback($this->validation);
        $arguments = $this->getFunctionArguments($callback->getReflection(), $value, $fields);
        return $callback->executeArray($arguments);
    }
public function isValid($value, array $fields = []): bool
    {
        $callback = new Callback($this->validation);
        $arguments = $this->getFunctionArguments($callback->getReflection(), $value, $fields);
        return $callback->executeArray($arguments);
    }
public function isValid ( $ value , array $ fields = [ ] ) : bool { $ callback = new Callback ( $ this -> validation ) ; $ arguments = $ this -> getFunctionArguments ( $ callback -> getReflection ( ) , $ value , $ fields ) ; return $ callback -> executeArray ( $ arguments ) ; }
Determines if the specified value matched the defined rule validation.

@param mixed $value
@param array $fields
@return bool
Determines if the specified value matched the defined rule validation .