1 | <?php |
||
8 | abstract class AbstractEvent extends Event |
||
9 | { |
||
10 | protected $commandName; |
||
11 | protected $input; |
||
12 | |||
13 | /** |
||
14 | * Construct an event for the given command |
||
15 | * @param string $name Command name |
||
16 | * @param InputInterface $input Command input |
||
17 | */ |
||
18 | 33 | public function __construct($name, InputInterface $input) |
|
23 | |||
24 | /** |
||
25 | * Return the command name |
||
26 | * |
||
27 | * @return string |
||
28 | */ |
||
29 | 24 | public function getCommandName() |
|
33 | |||
34 | /** |
||
35 | * Return the command input |
||
36 | * |
||
37 | * @return InputInterface |
||
38 | */ |
||
39 | 21 | public function getCommandInput() |
|
43 | } |
||
44 |