You are here

public function ClassMetadata::addGetterConstraints in Plug 7

Parameters

string $property:

Constraint[] $constraints:

Return value

ClassMetadata

File

lib/Symfony/validator/Symfony/Component/Validator/Mapping/ClassMetadata.php, line 326

Class

ClassMetadata
Default implementation of {@link ClassMetadataInterface}.

Namespace

Symfony\Component\Validator\Mapping

Code

public function addGetterConstraints($property, array $constraints) {
  foreach ($constraints as $constraint) {
    $this
      ->addGetterConstraint($property, $constraint);
  }
  return $this;
}