public function FakeMetadataFactory::addMetadataForValue in Plug 7
File
- lib/
Symfony/ validator/ Symfony/ Component/ 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;
}