1 | <?php |
||
20 | class NotificationPublished implements DomainEvent |
||
21 | { |
||
22 | private $notificationId; |
||
23 | private $userId; |
||
24 | private $type; |
||
25 | private $body; |
||
26 | private $status; |
||
27 | private $occurredOn; |
||
28 | |||
29 | public function __construct( |
||
42 | |||
43 | public function notificationId() : NotificationId |
||
47 | |||
48 | public function userId() : UserId |
||
52 | |||
53 | public function type() : NotificationType |
||
57 | |||
58 | public function body() : NotificationBody |
||
62 | |||
63 | public function status() : NotificationStatus |
||
67 | |||
68 | public function occurredOn() : \DateTimeInterface |
||
72 | } |
||
73 |