| 1 | <?php |
||
| 26 | final class EmailNotificationStrategy extends AbstractNotificationStrategy |
||
| 27 | { |
||
| 28 | /** |
||
| 29 | * @var NotificationType |
||
| 30 | */ |
||
| 31 | private $type; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @var EmailerInterface |
||
| 35 | */ |
||
| 36 | private $emailer; |
||
| 37 | |||
| 38 | public function __construct(EmailerInterface $emailer) |
||
| 43 | |||
| 44 | public function getType(): NotificationType |
||
| 48 | |||
| 49 | public function notify(NotificationInterface $notification): void |
||
| 53 | } |
||
| 54 |