protected function getRulesNames(AllOf $rules): array
    {
        $rulesNames = [];
        foreach ($rules->getRules() as $rule) {
            try {
                $rulesNames[] = lcfirst((new ReflectionClass($rule))->getShortName());
            } catch (ReflectionException $e) {
            }
        }

        return $rulesNames;
    }
protected function getRulesNames(AllOf $rules): array
    {
        $rulesNames = [];
        foreach ($rules->getRules() as $rule) {
            try {
                $rulesNames[] = lcfirst((new ReflectionClass($rule))->getShortName());
            } catch (ReflectionException $e) {
            }
        }

        return $rulesNames;
    }
protected function getRulesNames ( AllOf $ rules ) : array { $ rulesNames = [ ] ; foreach ( $ rules -> getRules ( ) as $ rule ) { try { $ rulesNames [ ] = lcfirst ( ( new ReflectionClass ( $ rule ) ) -> getShortName ( ) ) ; } catch ( ReflectionException $ e ) { } } return $ rulesNames ; }
Gets the name of all rules of a group of rules.

@param AllOf $rules

@return string[]
Gets the name of all rules of a group of rules .