Total Complexity | 6 |
Total Lines | 63 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
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 $command |
||
25 | * @param InputInterface $input |
||
26 | * @param OutputInterface $output |
||
27 | * @param null|\Throwable $exception |
||
28 | * @param int $exitCode |
||
29 | */ |
||
30 | public function __construct(Command $command, InputInterface $input, OutputInterface $output, $exception = null, $exitCode = 0) |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * @return Command |
||
41 | */ |
||
42 | public function getCommand() |
||
43 | { |
||
44 | return $this->command; |
||
45 | } |
||
46 | |||
47 | /** |
||
48 | * @return InputInterface |
||
49 | */ |
||
50 | public function getInput() |
||
51 | { |
||
52 | return $this->input; |
||
53 | } |
||
54 | |||
55 | /** |
||
56 | * @return OutputInterface |
||
57 | */ |
||
58 | public function getOutput() |
||
59 | { |
||
60 | return $this->output; |
||
61 | } |
||
62 | |||
63 | /** |
||
64 | * @return \Throwable |
||
65 | */ |
||
66 | public function getException() |
||
69 | } |
||
70 | |||
71 | /** |
||
72 | * @return mixed |
||
73 | */ |
||
74 | public function getExitCode() |
||
79 |