Total Complexity | 3 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
31 | class ExitStatusSubscriber implements EventSubscriberInterface |
||
32 | { |
||
33 | /** |
||
34 | * @var integer |
||
35 | */ |
||
36 | private $status = 0; |
||
37 | |||
38 | public static function getSubscribedEvents() |
||
39 | { |
||
40 | return [ |
||
41 | Events::ERROR => 'onFailure', |
||
42 | Events::WARNING => 'onFailure', |
||
43 | ]; |
||
44 | } |
||
45 | |||
46 | public function getExitStatus(): int |
||
49 | } |
||
50 | |||
51 | public function onFailure(): void |
||
54 | } |
||
55 | } |
||
56 |