You are here

public function FakeMetadataFactory::addMetadataForValue in Zircon Profile 8

Same name and namespace in other branches
  1. 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

FakeMetadataFactory

Namespace

Symfony\Component\Validator\Tests\Fixtures

Code

public function addMetadataForValue($value, MetadataInterface $metadata) {
  $key = is_object($value) ? spl_object_hash($value) : $value;
  $this->metadatas[$key] = $metadata;
}