public function ClassMetadata::addGetterConstraints in Plug 7
Parameters
string $property:
Constraint[] $constraints:
Return value
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Mapping/ ClassMetadata.php, line 326
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;
}