1 | <?php |
||
13 | class ChainUrlGenerator implements UrlGeneratorInterface |
||
14 | { |
||
15 | private $context; |
||
16 | private $generators; |
||
17 | |||
18 | /** |
||
19 | * @param UrlGeneratorInterface[] ...$generators |
||
20 | */ |
||
21 | public function __construct(UrlGeneratorInterface ...$generators) |
||
25 | |||
26 | /** |
||
27 | * {@inheritdoc} |
||
28 | */ |
||
29 | public function setContext(RequestContext $context) |
||
36 | |||
37 | /** |
||
38 | * {@inheritdoc} |
||
39 | */ |
||
40 | public function getContext() |
||
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | */ |
||
48 | public function generate($name, $parameters = array(), $referenceType = self::ABSOLUTE_PATH) |
||
62 | } |
||
63 |
Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.