1 | <?php |
||
32 | class ImmutableFlatContainer extends FlatContainer |
||
33 | { |
||
34 | /** |
||
35 | * @param array $params |
||
36 | */ |
||
37 | 20 | public function __construct(array $params = []) |
|
45 | |||
46 | /** |
||
47 | * @param string $key |
||
48 | * @param mixed $value |
||
49 | * |
||
50 | * @return ContainerInterface |
||
51 | */ |
||
52 | 5 | public function set($key, $value) |
|
59 | |||
60 | /** |
||
61 | * Clone children to ensure any modifications can not change this objects contents |
||
62 | * |
||
63 | * @param string $key |
||
64 | * |
||
65 | * @return mixed |
||
66 | */ |
||
67 | 8 | public function get($key) |
|
71 | |||
72 | /** |
||
73 | * @param string $key |
||
74 | * |
||
75 | * @return ContainerInterface |
||
76 | */ |
||
77 | 3 | public function remove($key) |
|
88 | } |
||
89 |