We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0863d9 commit 4f1e693Copy full SHA for 4f1e693
README.md
@@ -277,10 +277,10 @@ $port = app(\Flat3\RevPi\Interfaces\SerialPort::class); // Usually you want $pi-
277
If you want to create a custom monitor (beyond DigitalMonitor):
278
279
```php
280
-use Flat3\RevPi\Monitors\Monitor;
+use Flat3\RevPi\Interfaces\Monitor;
281
282
-class MyMonitor extends Monitor {
283
- public function evaluate(mixed $next): bool {
+class MyMonitor implements Monitor {
+ public function evaluate(int|bool|null $next): bool {
284
// Implement custom transition/action logic here
285
// e.g. if crossing a threshold, fire webhook
286
// Return true if the monitor has detected sufficient change
0 commit comments