You are here

public function FakeMetadataFactory::addMetadataForValue in Plug 7

File

lib/Symfony/validator/Symfony/Component/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;
}