Skip to content

Commit 4f1e693

Browse files
committed
Updates
1 parent c0863d9 commit 4f1e693

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,10 +277,10 @@ $port = app(\Flat3\RevPi\Interfaces\SerialPort::class); // Usually you want $pi-
277277
If you want to create a custom monitor (beyond DigitalMonitor):
278278

279279
```php
280-
use Flat3\RevPi\Monitors\Monitor;
280+
use Flat3\RevPi\Interfaces\Monitor;
281281

282-
class MyMonitor extends Monitor {
283-
public function evaluate(mixed $next): bool {
282+
class MyMonitor implements Monitor {
283+
public function evaluate(int|bool|null $next): bool {
284284
// Implement custom transition/action logic here
285285
// e.g. if crossing a threshold, fire webhook
286286
// Return true if the monitor has detected sufficient change

0 commit comments

Comments
 (0)