1 | <?php |
||
21 | class DocumentUrlGenerator extends ProviderBasedGenerator implements VersatileGeneratorInterface |
||
22 | { |
||
23 | /** |
||
24 | * @var array Route map configuration to map Elasticsearch types and Controllers. |
||
25 | */ |
||
26 | private $routeMap; |
||
27 | |||
28 | /** |
||
29 | * @var MetadataCollector |
||
30 | */ |
||
31 | private $collector; |
||
32 | |||
33 | /** |
||
34 | * @return mixed |
||
35 | */ |
||
36 | public function getRouteMap() |
||
40 | |||
41 | /** |
||
42 | * @param mixed $routeMap |
||
43 | */ |
||
44 | public function setRouteMap($routeMap) |
||
48 | |||
49 | /** |
||
50 | * @return MetadataCollector |
||
51 | */ |
||
52 | public function getCollector() |
||
56 | |||
57 | /** |
||
58 | * @param MetadataCollector $collector |
||
59 | */ |
||
60 | public function setCollector(MetadataCollector $collector) |
||
64 | |||
65 | /** |
||
66 | * {@inheritdoc} |
||
67 | */ |
||
68 | public function generate($name, $parameters = array(), $referenceType = self::ABSOLUTE_PATH) |
||
107 | /** |
||
108 | * @param mixed $name The route "name" which may also be an object or anything |
||
109 | * |
||
110 | * @return bool |
||
111 | * @throws RouteNotFoundException |
||
112 | */ |
||
113 | public function supports($name) |
||
121 | /** |
||
122 | * @param mixed $name |
||
123 | * @param array $parameters which should contain a content field containing |
||
124 | * a RouteReferrersReadInterface object |
||
125 | * |
||
126 | * @return string |
||
127 | */ |
||
128 | public function getRouteDebugMessage($name, array $parameters = array()) |
||
136 | } |
||
137 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..