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