1 | <?php declare(strict_types = 1); |
||
13 | class ConfigProxy implements ConfigContract |
||
14 | { |
||
15 | |||
16 | /** |
||
17 | * @var MutableConfigContract |
||
18 | */ |
||
19 | private $config; |
||
20 | |||
21 | /** |
||
22 | * ConfigProxy constructor. |
||
23 | * |
||
24 | * @param MutableConfigContract $config |
||
25 | */ |
||
26 | public function __construct(MutableConfigContract $config) |
||
30 | |||
31 | /** |
||
32 | * @inheritDoc |
||
33 | */ |
||
34 | public function all(): array |
||
38 | |||
39 | /** |
||
40 | * @inheritDoc |
||
41 | */ |
||
42 | public function count() |
||
46 | |||
47 | /** |
||
48 | * @inheritDoc |
||
49 | */ |
||
50 | public function get(string $key, $default = null) |
||
54 | |||
55 | /** |
||
56 | * @inheritDoc |
||
57 | */ |
||
58 | public function has(string $key): bool |
||
62 | |||
63 | /** |
||
64 | * @inheritDoc |
||
65 | */ |
||
66 | function jsonSerialize() |
||
70 | |||
71 | } |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.