protected static function getRulesGroups()
    {
        $groups = [];

        foreach (get_class_vars(get_called_class()) as $property => $val) {
            if (preg_match('/^.*rules$/i', $property)) {
                $groups[] = $property;
            }
        }

        return $groups;
    }
protected static function getRulesGroups()
    {
        $groups = [];

        foreach (get_class_vars(get_called_class()) as $property => $val) {
            if (preg_match('/^.*rules$/i', $property)) {
                $groups[] = $property;
            }
        }

        return $groups;
    }
protected static function getRulesGroups ( ) { $ groups = [ ] ; foreach ( get_class_vars ( get_called_class ( ) ) as $ property => $ val ) { if ( preg_match ( '/^.*rules$/i' , $ property ) ) { $ groups [ ] = $ property ; } } return $ groups ; }
Get all the rules groups defined on this model.

@return array
Get all the rules groups defined on this model .