| Total Complexity | 4 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | final class Runner |
||
| 12 | { |
||
| 13 | private ContainerInterface $container; |
||
| 14 | |||
| 15 | public function __construct(ContainerInterface $container) |
||
| 16 | { |
||
| 17 | $this->container = $container; |
||
| 18 | } |
||
| 19 | |||
| 20 | private function returnError(\Throwable $err): void |
||
| 21 | { |
||
| 22 | $msg = "Unable to run - " . $err->getMessage(); |
||
| 23 | $msg .= "\n" . $err->__toString(); |
||
| 24 | $msg .= "\n"; |
||
| 25 | echo $msg; |
||
| 26 | } |
||
| 27 | |||
| 28 | public function __invoke(): void |
||
| 45 | } |
||
| 46 | } |
||
| 47 | } |
||
| 48 |