public function ClassMetadata::addGetterConstraints in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/validator/Mapping/ClassMetadata.php \Symfony\Component\Validator\Mapping\ClassMetadata::addGetterConstraints()
Parameters
string $property:
Constraint[] $constraints:
Return value
File
- vendor/
symfony/ validator/ Mapping/ ClassMetadata.php, line 328
Class
- ClassMetadata
- Default implementation of {@link ClassMetadataInterface}.
Namespace
Symfony\Component\Validator\MappingCode
public function addGetterConstraints($property, array $constraints) {
foreach ($constraints as $constraint) {
$this
->addGetterConstraint($property, $constraint);
}
return $this;
}