Symfony\Component\Validator\Constraint::getTargets
Returns whether the constraint can be put onto classes, properties or both
This method should return one or more of the constants Constraint::CLASS_CONSTRAINT and Constraint::PROPERTY_CONSTRAINT.
Signature
public function getTargets()
Returns
- string|array
- One or more constant values