1 | <?php |
||
10 | final class AssistedWebContextParam implements ParamInterface |
||
11 | { |
||
12 | /** |
||
13 | * $GLOBALS for testing |
||
14 | * |
||
15 | * @var array<string, array<string, string>> |
||
16 | */ |
||
17 | private static $globals = []; |
||
18 | |||
19 | /** |
||
20 | * @var AbstractWebContextParam |
||
21 | */ |
||
22 | private $webContextParam; |
||
23 | |||
24 | /** |
||
25 | * @var ParamInterface |
||
26 | */ |
||
27 | private $defaultParam; |
||
28 | |||
29 | 5 | public function __construct(AbstractWebContextParam $webContextParam, ParamInterface $defaultParam) |
|
34 | |||
35 | /** |
||
36 | * {@inheritdoc} |
||
37 | */ |
||
38 | 4 | public function __invoke(string $varName, array $query, InjectorInterface $injector) |
|
50 | |||
51 | 5 | /** |
|
52 | * @param array<string, array<string, string>> $globals |
||
53 | 5 | */ |
|
54 | 5 | public static function setSuperGlobalsOnlyForTestingPurpose(array $globals) : void |
|
58 | } |
||
59 |
Late static binding only has effect in subclasses. A
final
class cannot be extended anymore so late static binding cannot occurr. Consider replacingstatic::
withself::
.To learn more about late static binding, please refer to the PHP core documentation.