Total Complexity | 3 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | final class ServerHeadersBasedHostDetector implements HostDetectorInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var string $needle |
||
14 | */ |
||
15 | private $needle; |
||
16 | |||
17 | /** |
||
18 | * @param string $needle |
||
19 | * @throws HostDetectorException |
||
20 | */ |
||
21 | 16 | public function __construct(string $needle) |
|
30 | 13 | } |
|
31 | |||
32 | 31 | public function getCurrentHost(): HostId |
|
39 |