| Total Complexity | 2 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class ModuleMakerSubscriber implements Services\ModuleMakerSubscriber, EventSubscriberInterface |
||
| 17 | { |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Returns an array of event names this subscriber wants to listen to. |
||
| 21 | * |
||
| 22 | * The array keys are event names and the value can be: |
||
| 23 | * |
||
| 24 | * * The method name to call (priority defaults to 0) |
||
| 25 | * * An array composed of the method name to call and the priority |
||
| 26 | * * An array of arrays composed of the method names to call and respective |
||
| 27 | * priorities, or 0 if unset |
||
| 28 | * |
||
| 29 | * For instance: |
||
| 30 | * |
||
| 31 | * * array('eventName' => 'methodName') |
||
| 32 | * * array('eventName' => array('methodName', $priority)) |
||
| 33 | * * array('eventName' => array(array('methodName1', $priority), array('methodName2'))) |
||
| 34 | * |
||
| 35 | * @return array The event names to listen to |
||
| 36 | */ |
||
| 37 | 1 | public static function getSubscribedEvents() |
|
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @param ModuleWasCreated $created |
||
| 44 | * @throws \Saci\Console\Domain\Exceptions\ModuleAlreadyExists |
||
| 45 | */ |
||
| 46 | 1 | public function createModule(ModuleWasCreated $created) |
|
| 49 | } |
||
| 50 | } |