protected function ClassMetadata::addMemberMetadata

Adds a member metadata.

Parameters

MemberMetadata $metadata:

3 calls to ClassMetadata::addMemberMetadata()
ClassMetadata::addGetterConstraint in drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Mapping/ClassMetadata.php
Adds a constraint to the getter of the given property.
ClassMetadata::addPropertyConstraint in drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Mapping/ClassMetadata.php
Adds a constraint to the given property.
ClassMetadata::mergeConstraints in drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Mapping/ClassMetadata.php
Merges the constraints of the given metadata into this object.

File

drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Mapping/ClassMetadata.php, line 273

Class

ClassMetadata
Represents all the configured constraints on a given class.

Namespace

Symfony\Component\Validator\Mapping

Code

protected function addMemberMetadata(MemberMetadata $metadata) {
  $property = $metadata
    ->getPropertyName();
  $this->members[$property][] = $metadata;
}