Total Complexity | 5 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Changes | 4 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
5 | class Check extends ApiResource |
||
6 | { |
||
7 | public int $id; |
||
8 | |||
9 | public string $type; |
||
10 | |||
11 | /* |
||
12 | * The human readable version of type. |
||
13 | */ |
||
14 | public string $label; |
||
15 | |||
16 | public bool $enabled; |
||
17 | |||
18 | public function enable(): void |
||
19 | { |
||
20 | $updatedCheck = $this->ohDear->enableCheck($this->id); |
||
|
|||
21 | |||
22 | $this->enabled = $updatedCheck->enabled; |
||
23 | } |
||
24 | |||
25 | public function disable(): void |
||
26 | { |
||
27 | $updatedCheck = $this->ohDear->disableCheck($this->id); |
||
28 | |||
29 | $this->enabled = $updatedCheck->enabled; |
||
30 | } |
||
31 | |||
32 | public function requestRun(): void |
||
33 | { |
||
34 | $this->ohDear->requestRun($this->id); |
||
35 | } |
||
36 | |||
37 | public function snooze(int $minutes): void |
||
38 | { |
||
39 | $this->ohDear->snooze($this->id, $minutes); |
||
40 | } |
||
41 | |||
42 | public function unsnooze(): void |
||
45 | } |
||
46 | } |
||
47 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.