| Total Complexity | 2 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | final class CallableShutdownHandler implements ShutdownHandlerInterface |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @var callable |
||
| 25 | */ |
||
| 26 | private $handler; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * CallableShutdownHandler constructor. |
||
| 30 | * |
||
| 31 | * @param callable $handler |
||
| 32 | */ |
||
| 33 | 1 | public function __construct(callable $handler) |
|
| 34 | { |
||
| 35 | 1 | $this->handler = $handler; |
|
| 36 | 1 | } |
|
| 37 | |||
| 38 | /** |
||
| 39 | * {@inheritDoc} |
||
| 40 | */ |
||
| 41 | 1 | public function handleShutdown(): void |
|
| 44 | } |
||
| 45 | } |
||
| 46 |