1 | <?php |
||
12 | class MultiDomainTwigExtension extends AbstractExtension |
||
13 | { |
||
14 | /** |
||
15 | * @var DomainConfigurationInterface |
||
16 | */ |
||
17 | private $domainConfiguration; |
||
18 | |||
19 | public function __construct(DomainConfigurationInterface $domainConfiguration) |
||
23 | |||
24 | /** |
||
25 | * Get Twig functions defined in this extension. |
||
26 | * |
||
27 | * @return array |
||
|
|||
28 | */ |
||
29 | public function getFunctions() |
||
38 | |||
39 | /** |
||
40 | * @param $key |
||
41 | */ |
||
42 | public function getExtraData($key) |
||
52 | |||
53 | /** |
||
54 | * @return array |
||
55 | */ |
||
56 | public function getMultiDomainHosts() |
||
60 | |||
61 | /** |
||
62 | * @return string |
||
63 | */ |
||
64 | public function getCurrentHost() |
||
68 | |||
69 | /** |
||
70 | * @return array |
||
71 | */ |
||
72 | public function getCurrentFullHost() |
||
76 | } |
||
77 |
This check looks for the generic type
array
as a return type and suggests a more specific type. This type is inferred from the actual code.