src/RulesParser.php
private function getRuleFactory(string $name): callable
    {
        if (array_key_exists($name, $this->factories)) {

            return $this->factories[$name];

        }

        throw new RuleFactoryNotDefinedException($name);
    }
private function getRuleFactory(string $name): callable
    {
        if (array_key_exists($name, $this->factories)) {

            return $this->factories[$name];

        }

        throw new RuleFactoryNotDefinedException($name);
    }
private function getRuleFactory ( string $ name ) : callable { if ( array_key_exists ( $ name , $ this -> factories ) ) { return $ this -> factories [ $ name ] ; } throw new RuleFactoryNotDefinedException ( $ name ) ; }
Return the rule factory associated to the given name.

@param string $name
@return callable
Return the rule factory associated to the given name .