1 | <?php |
||
11 | class SendNotificationHandler |
||
12 | { |
||
13 | /** |
||
14 | * @var NotificationRepository |
||
15 | */ |
||
16 | private $notificationRepository; |
||
17 | |||
18 | /** |
||
19 | * @var GatewayRegistry |
||
20 | */ |
||
21 | private $gatewayRegistry; |
||
22 | |||
23 | /** |
||
24 | * @param NotificationRepository $notificationRepository |
||
25 | * @param GatewayRegistry $gatewayRegistry |
||
26 | */ |
||
27 | 2 | public function __construct( |
|
34 | |||
35 | /** |
||
36 | * @param SendNotification $command |
||
37 | * @throws NotificationNotFoundException |
||
38 | */ |
||
39 | 2 | public function handle(SendNotification $command): void |
|
49 | } |
||
50 |