Symfony2 API
Class

Symfony\Component\Validator\Constraints\Collection\Optional

class Optional extends Optional

Constants

DEFAULT_GROUP

The name of the group given to all constraints with no explicit group

CLASS_CONSTRAINT

Marks a constraint that can be put onto classes

PROPERTY_CONSTRAINT

Marks a constraint that can be put onto properties

Properties

array $groups
$constraints