1 | <?php |
||
14 | class CommandEvent |
||
15 | { |
||
16 | private $command; |
||
17 | private $input; |
||
18 | private $output; |
||
19 | private $exception; |
||
20 | private $exitCode; |
||
21 | |||
22 | /** |
||
23 | * CommandEvent constructor. |
||
24 | * @param $command |
||
25 | * @param $input |
||
26 | * @param $output |
||
27 | * @param $exception |
||
28 | * @param $exitCode |
||
29 | */ |
||
30 | public function __construct(Command $command, InputInterface $input, OutputInterface $output, \Exception $exception = null, $exitCode = 0) |
||
38 | |||
39 | /** |
||
40 | * @return Command |
||
41 | */ |
||
42 | public function getCommand(): Command |
||
46 | |||
47 | /** |
||
48 | * @return InputInterface |
||
49 | */ |
||
50 | public function getInput(): InputInterface |
||
54 | |||
55 | /** |
||
56 | * @return OutputInterface |
||
57 | */ |
||
58 | public function getOutput(): OutputInterface |
||
62 | |||
63 | /** |
||
64 | * @return \Exception |
||
65 | */ |
||
66 | public function getException(): \Exception |
||
70 | |||
71 | /** |
||
72 | * @return mixed |
||
73 | */ |
||
74 | public function getExitCode() |
||
78 | } |
||
79 |