Total Complexity | 2 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | class PingParser implements PingParserInterface |
||
22 | { |
||
23 | protected string $host_status = ''; |
||
24 | protected array $sequence = []; |
||
25 | protected array $statistics = []; |
||
26 | protected array $round_trip_time = []; |
||
27 | |||
28 | /** |
||
29 | * PingParser constructor. |
||
30 | * |
||
31 | * @param array $results |
||
32 | */ |
||
33 | public function __construct(protected array $results = []) |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * Returns the Ping execution result parsed as object. |
||
39 | * |
||
40 | * @return object |
||
41 | */ |
||
42 | public function parse(): object |
||
47 |