Total Complexity | 2 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | final class HostIdMapper implements HostDetectorInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var HostDetectorInterface |
||
13 | */ |
||
14 | private $inner; |
||
15 | /** |
||
16 | * @var string[] |
||
17 | */ |
||
18 | private $hostIdMap; |
||
19 | |||
20 | /** |
||
21 | * @param HostDetectorInterface $inner |
||
22 | * @param string[] $hostIdMap |
||
23 | */ |
||
24 | 3 | public function __construct(HostDetectorInterface $inner, array $hostIdMap = []) |
|
25 | { |
||
26 | 3 | $this->inner = $inner; |
|
27 | 3 | $this->hostIdMap = $hostIdMap; |
|
28 | 3 | } |
|
29 | |||
30 | 3 | public function getCurrentHost(): HostId |
|
36 | } |
||
37 | } |