protected function ClassMetadata::addMemberMetadata in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/validator/Mapping/ClassMetadata.php \Symfony\Component\Validator\Mapping\ClassMetadata::addMemberMetadata()
Adds a member metadata.
Parameters
MemberMetadata $metadata:
Deprecated
since version 2.6, to be removed in 3.0.
File
- vendor/
symfony/ validator/ Mapping/ ClassMetadata.php, line 378
Class
- ClassMetadata
- Default implementation of {@link ClassMetadataInterface}.
Namespace
Symfony\Component\Validator\MappingCode
protected function addMemberMetadata(MemberMetadata $metadata) {
@trigger_error('The ' . __METHOD__ . ' method is deprecated since version 2.6 and will be removed in 3.0. Use the addPropertyMetadata() method instead.', E_USER_DEPRECATED);
$this
->addPropertyMetadata($metadata);
}