1 | <?php declare(strict_types = 1); |
||
14 | class ConfigProxy implements IteratorAggregate, ConfigContract |
||
15 | { |
||
16 | |||
17 | /** |
||
18 | * @var MutableConfigContract |
||
19 | */ |
||
20 | private $config; |
||
21 | |||
22 | /** |
||
23 | * ConfigProxy constructor. |
||
24 | * |
||
25 | * @param MutableConfigContract $config |
||
26 | */ |
||
27 | 5 | public function __construct(MutableConfigContract $config) |
|
31 | |||
32 | /** |
||
33 | * @inheritDoc |
||
34 | */ |
||
35 | 1 | public function all(): array |
|
39 | |||
40 | /** |
||
41 | * @inheritDoc |
||
42 | */ |
||
43 | 1 | public function get(string $key, $default = null) |
|
47 | |||
48 | /** |
||
49 | * @inheritDoc |
||
50 | */ |
||
51 | public function getIterator() |
||
55 | |||
56 | /** |
||
57 | * @inheritDoc |
||
58 | */ |
||
59 | 1 | public function has(string $key): bool |
|
63 | |||
64 | /** |
||
65 | * @inheritDoc |
||
66 | */ |
||
67 | 1 | function jsonSerialize() |
|
71 | |||
72 | } |
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.