1 | <?php |
||
10 | class ExecutorRunner implements EventSubscriberInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var array |
||
14 | */ |
||
15 | private $config; |
||
16 | |||
17 | /** |
||
18 | * @var array|ExecutorInterface[] |
||
19 | */ |
||
20 | private $executors; |
||
21 | |||
22 | 7 | public function __construct(array $config) |
|
27 | |||
28 | /** |
||
29 | * @param string $name |
||
30 | * @param array $args |
||
31 | * |
||
32 | * @throws \RuntimeException |
||
33 | */ |
||
34 | 4 | public function __call($name, array $args) |
|
51 | |||
52 | /** |
||
53 | * @param string $eventName |
||
54 | * @param OutputInterface $output |
||
55 | * |
||
56 | * @throws \Exception |
||
57 | */ |
||
58 | 4 | protected function runExecutors($eventName, OutputInterface $output) |
|
91 | |||
92 | /** |
||
93 | * @param ExecutorInterface $executor |
||
94 | * |
||
95 | * @return $this |
||
96 | */ |
||
97 | 4 | public function addExecutor(ExecutorInterface $executor) |
|
103 | |||
104 | /** |
||
105 | * @return array The event names to listen to |
||
106 | * |
||
107 | * @api |
||
108 | */ |
||
109 | 13 | public static function getSubscribedEvents() |
|
115 | } |
||
116 |
Very long variable names usually make code harder to read. It is therefore recommended not to make variable names too verbose.