| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 41 | 5 | public function register(string $signal, callable $handler): self |
|
| 42 | { |
||
| 43 | 5 | $this->handlers[$signal] = $handler; |
|
| 44 | |||
| 45 | 5 | $this->processor->interrupt($signal, function (...$arguments) use ($signal) { |
|
| 46 | 1 | return $this->dispatch($signal, ...$arguments); |
|
| 47 | 5 | }); |
|
| 48 | |||
| 49 | 5 | return $this; |
|
| 50 | } |
||
| 70 |