Total Complexity | 5 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | final class Options |
||
8 | { |
||
9 | private string $random; |
||
10 | private string $address; |
||
11 | private int $connectTimeout; |
||
12 | |||
13 | public function __construct(string $random, string $address, int $connectTimeout) |
||
18 | } |
||
19 | |||
20 | public function random(): string |
||
21 | { |
||
22 | return $this->random; |
||
23 | } |
||
24 | |||
25 | public function address(): string |
||
26 | { |
||
27 | return $this->address; |
||
28 | } |
||
29 | |||
30 | public function connectTimeout(): int |
||
31 | { |
||
32 | return $this->connectTimeout; |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * @return array<string|int> |
||
37 | */ |
||
38 | public function toArray(): array |
||
44 | ]; |
||
45 | } |
||
46 | } |
||
47 |