The interface Symfony\Component\Valida...etadataFactoryInterface has been deprecated with message: since version 2.5, to be removed in 3.0. Use {@link Mapping\Factory\MetadataFactoryInterface} instead.
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be
removed from the class and what other constant to use instead.
Loading history...
10
{
11
protected $metadatas = array();
12
13
public function getMetadataFor($class)
14
{
15
if (is_object($class)) {
16
$class = get_class($class);
17
}
18
19
if (!is_string($class)) {
20
throw new NoSuchMetadataException('No metadata for type ' . gettype($class));
21
}
22
23
if (!isset($this->metadatas[$class])) {
24
throw new NoSuchMetadataException('No metadata for "' . $class . '"');
25
}
26
27
return $this->metadatas[$class];
28
}
29
30
public function hasMetadataFor($class)
31
{
32
if (is_object($class)) {
33
$class = get_class($class);
34
}
35
36
if (!is_string($class)) {
37
return false;
38
}
39
40
return isset($this->metadatas[$class]);
41
}
42
43
public function addMetadata(ClassMetadata $metadata)
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.