| 1 | <?php |
||
| 9 | abstract class CheckDefinition |
||
| 10 | { |
||
| 11 | /** @var \Spatie\ServerMonitor\Models\Check */ |
||
| 12 | protected $check; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param \Spatie\ServerMonitor\Models\Check $check |
||
| 16 | * |
||
| 17 | * @return $this |
||
| 18 | */ |
||
| 19 | public function setCheck(Check $check) |
||
| 25 | |||
| 26 | public function getCommand(): string |
||
| 30 | |||
| 31 | public function handleFinishedProcess(Process $process) |
||
| 47 | |||
| 48 | abstract public function handleSuccessfulProcess(Process $process); |
||
| 49 | |||
| 50 | public function handleFailedProcess(Process $process) |
||
| 54 | |||
| 55 | public function resendFailingNotificationEveryMinutes(): int |
||
| 59 | |||
| 60 | abstract public function performNextRunInMinutes(): int; |
||
| 61 | } |
||
| 62 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: