public function FakeMetadataFactory::addMetadataForValue in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/validator/Tests/Fixtures/FakeMetadataFactory.php \Symfony\Component\Validator\Tests\Fixtures\FakeMetadataFactory::addMetadataForValue()
File
- vendor/
symfony/ validator/ Tests/ Fixtures/ FakeMetadataFactory.php, line 67
Class
Namespace
Symfony\Component\Validator\Tests\FixturesCode
public function addMetadataForValue($value, MetadataInterface $metadata) {
$key = is_object($value) ? spl_object_hash($value) : $value;
$this->metadatas[$key] = $metadata;
}