Symfony\Component\Validator\Mapping\ClassMetadata::addGetterConstraint
Adds a constraint to the getter of the given property.
The name of the getter is assumed to be the name of the property with an uppercased first letter and either the prefix "get" or "is".
Signature
public function addGetterConstraint(string
$property,
Constraint
$constraint )
Parameters
$property
— string- The name of the property
$constraint
— Symfony\Component\Validator\Constraint- The constraint
Returns
- ClassMetadata
- This object