Total Complexity | 4 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | final class ServerBag extends InputBag |
||
19 | { |
||
20 | /** |
||
21 | * {@inheritdoc} |
||
22 | */ |
||
23 | public function has(string $name): bool |
||
24 | { |
||
25 | return parent::has($this->normalize($name)); |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * {@inheritdoc} |
||
30 | */ |
||
31 | public function get(string $name, $default = null) |
||
32 | { |
||
33 | return parent::get($this->normalize($name), $default); |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * {@inheritdoc} |
||
38 | */ |
||
39 | public function fetch(array $keys, bool $fill = false, $filler = null) |
||
44 | } |
||
45 | |||
46 | /** |
||
47 | * Normalizing name to simplify selection. |
||
48 | * |
||
49 | * @param string $name |
||
50 | * |
||
51 | * @return string |
||
52 | */ |
||
53 | protected function normalize(string $name): string |
||
56 | } |
||
57 | } |
||
58 |