Total Complexity | 5 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class Config |
||
10 | { |
||
11 | /** @var array */ |
||
12 | private $configurationArray; |
||
13 | |||
14 | public function __construct(array $configurationArray) |
||
15 | { |
||
16 | $this->configurationArray = $configurationArray; |
||
17 | } |
||
18 | |||
19 | public function getInterfaceIp(): HostInterface |
||
20 | { |
||
21 | return new HostInterface($this->configurationArray['ip']); |
||
22 | } |
||
23 | |||
24 | public function getPort(): Port |
||
25 | { |
||
26 | return new Port((int) $this->configurationArray['port']); |
||
27 | } |
||
28 | |||
29 | public function isDebugMode(): bool |
||
32 | } |
||
33 | |||
34 | public function getExpectationsPath(): ExpectationsDirectory |
||
37 | } |
||
38 | } |
||
39 |