1 | <?php |
||
5 | class Site extends ApiResource |
||
6 | { |
||
7 | /** |
||
8 | * The id of the site. |
||
9 | * |
||
10 | * @var int |
||
11 | */ |
||
12 | public $id; |
||
13 | |||
14 | /** |
||
15 | * The url of the site. |
||
16 | * |
||
17 | * @var string |
||
18 | */ |
||
19 | public $url; |
||
20 | |||
21 | /** |
||
22 | * The checks of a site. |
||
23 | * |
||
24 | * @var Check[] |
||
25 | */ |
||
26 | public $checks; |
||
27 | |||
28 | /** |
||
29 | * The sort url of the site. |
||
30 | * |
||
31 | * @var string |
||
32 | */ |
||
33 | public $sortUrl; |
||
34 | |||
35 | public function __construct(array $attributes, $ohDear = null) |
||
43 | |||
44 | /** |
||
45 | * Delete the given site. |
||
46 | * |
||
47 | * @return void |
||
48 | */ |
||
49 | public function delete() |
||
53 | |||
54 | public function startMaintenance(int $stopMaintenanceAfterSeconds = 60 * 60) |
||
58 | |||
59 | public function stopMaintenance() |
||
63 | |||
64 | /** |
||
65 | * Get the broken links for this site. |
||
66 | * |
||
67 | * @return array |
||
68 | */ |
||
69 | public function brokenLinks() |
||
73 | |||
74 | /** |
||
75 | * Get the detected mixed content for a site. |
||
76 | * |
||
77 | * @return array |
||
78 | */ |
||
79 | public function mixedContent() |
||
83 | |||
84 | /** |
||
85 | * Get the uptime percentages for a site. |
||
86 | * |
||
87 | * @param string $startedAt Must be in format Ymdhis |
||
88 | * @param string $endedAt Must be in format Ymdhis |
||
89 | * @param string $split Use hour, day or month |
||
90 | * |
||
91 | * @return array |
||
92 | */ |
||
93 | public function uptime(string $startedAt, string $endedAt, string $split) |
||
97 | |||
98 | /** |
||
99 | * Get the downtime periods for a site. |
||
100 | * |
||
101 | * @param string $startedAt Must be in format Ymdhis |
||
102 | * @param string $endedAt Must be in format Ymdhis |
||
103 | * |
||
104 | * @return array |
||
105 | */ |
||
106 | public function downtime(string $startedAt, string $endedAt) |
||
110 | |||
111 | /** |
||
112 | * Get information on the certificate of the site. |
||
113 | * |
||
114 | * @return array |
||
115 | */ |
||
116 | public function certificateHealth() |
||
120 | } |
||
121 |