You are here

private function ClassMetadata::addPropertyMetadata in Plug 7

Adds a property metadata.

Parameters

PropertyMetadataInterface $metadata:

4 calls to ClassMetadata::addPropertyMetadata()
ClassMetadata::addGetterConstraint in lib/Symfony/validator/Symfony/Component/Validator/Mapping/ClassMetadata.php
Adds a constraint to the getter of the given property.
ClassMetadata::addMemberMetadata in lib/Symfony/validator/Symfony/Component/Validator/Mapping/ClassMetadata.php
Adds a member metadata.
ClassMetadata::addPropertyConstraint in lib/Symfony/validator/Symfony/Component/Validator/Mapping/ClassMetadata.php
Adds a constraint to the given property.
ClassMetadata::mergeConstraints in lib/Symfony/validator/Symfony/Component/Validator/Mapping/ClassMetadata.php
Merges the constraints of the given metadata into this object.

File

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

Class

ClassMetadata
Default implementation of {@link ClassMetadataInterface}.

Namespace

Symfony\Component\Validator\Mapping

Code

private function addPropertyMetadata(PropertyMetadataInterface $metadata) {
  $property = $metadata
    ->getPropertyName();
  $this->members[$property][] = $metadata;
}