public function getRule(string $ruleName) : IRule
    {
        if (!$this->hasRule($ruleName)) {
            throw new InvalidArgumentException("No rule extension with name \"$ruleName\" found");
        }

        return $this->extensions[$ruleName];
    }
public function getRule(string $ruleName) : IRule
    {
        if (!$this->hasRule($ruleName)) {
            throw new InvalidArgumentException("No rule extension with name \"$ruleName\" found");
        }

        return $this->extensions[$ruleName];
    }
public function getRule ( string $ ruleName ) : IRule { if ( ! $ this -> hasRule ( $ ruleName ) ) { throw new InvalidArgumentException ( "No rule extension with name \"$ruleName\" found" ) ; } return $ this -> extensions [ $ ruleName ] ; }
Gets the rule extension with the input name

@param string $ruleName The name of the rule
@return IRule The rule extension
@throws InvalidArgumentException Thrown if no extension is registered with the name
Gets the rule extension with the input name