function DebugCommand::getConstraintOptions
2 calls to DebugCommand::getConstraintOptions()
- DebugCommand::getClassConstraintsData in vendor/
symfony/ validator/ Command/ DebugCommand.php - DebugCommand::getPropertyData in vendor/
symfony/ validator/ Command/ DebugCommand.php
File
-
vendor/
symfony/ validator/ Command/ DebugCommand.php, line 200
Class
- DebugCommand
- A console command to debug Validators information.
Namespace
Symfony\Component\Validator\CommandCode
private function getConstraintOptions(Constraint $constraint) : array {
$options = [];
foreach (array_keys(get_object_vars($constraint)) as $propertyName) {
// Groups are dumped on a specific column.
if ('groups' === $propertyName) {
continue;
}
$options[$propertyName] = $constraint->{$propertyName};
}
ksort($options);
return $options;
}