public function getRule($ruleName)
    {
        if(!$this->hasRule($ruleName)) {
            throw new RuleNotFoundException(RuleNotFoundException::formatMessage($ruleName));
        }

        return $this->rules[$ruleName];
    }
public function getRule($ruleName)
    {
        if(!$this->hasRule($ruleName)) {
            throw new RuleNotFoundException(RuleNotFoundException::formatMessage($ruleName));
        }

        return $this->rules[$ruleName];
    }
public function getRule ( $ ruleName ) { if ( ! $ this -> hasRule ( $ ruleName ) ) { throw new RuleNotFoundException ( RuleNotFoundException :: formatMessage ( $ ruleName ) ) ; } return $ this -> rules [ $ ruleName ] ; }
Return a rule base on it's name

@param $ruleName

@throws RuleNotFoundException

@return callable
Return a rule base on it s name