1 | <?php |
||
11 | final class Environment implements EnvironmentInterface |
||
12 | { |
||
13 | /** @var string|null */ |
||
14 | private $id = null; |
||
15 | |||
16 | /** @var array */ |
||
17 | private $values = []; |
||
18 | |||
19 | /** |
||
20 | * @param array $values |
||
21 | */ |
||
22 | public function __construct(array $values = []) |
||
26 | |||
27 | /** |
||
28 | * @inheritdoc |
||
29 | */ |
||
30 | public function getID(): string |
||
38 | |||
39 | /** |
||
40 | * @inheritdoc |
||
41 | */ |
||
42 | public function set(string $name, $value) |
||
49 | |||
50 | /** |
||
51 | * @inheritdoc |
||
52 | */ |
||
53 | public function get(string $name, $default = null) |
||
61 | |||
62 | /** |
||
63 | * @param mixed $value |
||
64 | * @return bool|null|string |
||
65 | */ |
||
66 | protected function normalize($value) |
||
88 | } |