Total Complexity | 5 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
7 | trait ManagesChecks |
||
8 | { |
||
9 | public function enableCheck(int $checkId): Check |
||
14 | } |
||
15 | |||
16 | public function disableCheck(int $checkId): Check |
||
17 | { |
||
18 | $checkAttributes = $this->post("checks/{$checkId}/disable"); |
||
19 | |||
20 | return new Check($checkAttributes, $this); |
||
21 | } |
||
22 | |||
23 | public function requestRun(int $checkId): Check |
||
24 | { |
||
25 | $checkAttributes = $this->post("checks/{$checkId}/request-run"); |
||
26 | |||
27 | return new Check($checkAttributes, $this); |
||
28 | } |
||
29 | |||
30 | public function snooze(int $checkId, int $minutes) |
||
37 | } |
||
38 | |||
39 | public function unsnooze(int $checkId): Check |
||
44 | } |
||
45 | } |
||
46 |