1 | <?php |
||
8 | class Host |
||
9 | { |
||
10 | protected $host; |
||
11 | protected $pinger; |
||
12 | protected $ping = 0; |
||
13 | protected $statusCode = 0; |
||
14 | |||
15 | 15 | public function __construct($host) |
|
20 | |||
21 | /** |
||
22 | * Checks the ping of the host |
||
23 | * @return [type] [description] |
||
|
|||
24 | */ |
||
25 | 3 | public function ping(){ |
|
26 | 3 | $this->ping = $this->pinger->ping(); |
|
27 | 3 | return $this->getPing(); |
|
28 | } |
||
29 | |||
30 | /** |
||
31 | * Checks the status of the host |
||
32 | * @return [type] [description] |
||
33 | */ |
||
34 | public function status(){ |
||
40 | |||
41 | |||
42 | /** |
||
43 | * Gets the value of host. |
||
44 | * |
||
45 | * @return mixed |
||
46 | */ |
||
47 | 3 | public function getHost() |
|
51 | |||
52 | /** |
||
53 | * Gets the value of ping. |
||
54 | * |
||
55 | * @return mixed |
||
56 | */ |
||
57 | 6 | public function getPing() |
|
61 | |||
62 | /** |
||
63 | * Gets the value of statusCode. |
||
64 | * |
||
65 | * @return mixed |
||
66 | */ |
||
67 | 3 | public function getStatusCode() |
|
71 | } |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.