Adds a member metadata.
Parameters
MemberMetadata $metadata:
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;
}