| Total Complexity | 2 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | class DispatchFormNotificationFinisher extends AbstractFinisher |
||
| 23 | { |
||
| 24 | const DISPATCH_NOTIFICATION = 'DispatchNotification'; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var Dispatcher |
||
| 28 | */ |
||
| 29 | protected $slotDispatcher; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * This finisher dispatches a signal that will be caught by NotiZ and allow |
||
| 33 | * notifications to be sent. |
||
| 34 | */ |
||
| 35 | protected function executeInternal() |
||
| 36 | { |
||
| 37 | $this->slotDispatcher->dispatch( |
||
| 38 | self::class, |
||
| 39 | self::DISPATCH_NOTIFICATION, |
||
| 40 | [$this->finisherContext] |
||
| 41 | ); |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @param Dispatcher $slotDispatcher |
||
| 46 | */ |
||
| 47 | public function injectSlotDispatcher(Dispatcher $slotDispatcher) |
||
| 50 | } |
||
| 51 | } |
||
| 52 |