private static function LegacyValidator::testGroups in Plug 7
1 call to LegacyValidator::testGroups()
- LegacyValidator::validate in lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Validator/ LegacyValidator.php - Validates a value against a constraint or a list of constraints.
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Validator/ LegacyValidator.php, line 75
Class
- LegacyValidator
- A validator that supports both the API of Symfony < 2.5 and Symfony 2.5+.
Namespace
Symfony\Component\Validator\ValidatorCode
private static function testGroups($groups) {
return null === $groups || is_string($groups) || $groups instanceof GroupSequence || is_array($groups) && (is_string(current($groups)) || current($groups) instanceof GroupSequence);
}