You are here

private function ClassMetadata::addPropertyMetadata in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Mapping/ClassMetadata.php \Symfony\Component\Validator\Mapping\ClassMetadata::addPropertyMetadata()

Adds a property metadata.

Parameters

PropertyMetadataInterface $metadata:

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

File

vendor/symfony/validator/Mapping/ClassMetadata.php, line 550

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;
}