public function setRule($ruleName, $callable)
    {
        if(!is_callable($callable)) {
            throw new InvalidRuleException(InvalidRuleException::formatMessage($ruleName));
        }
        $this->rules[$ruleName] = $callable;
    }