| 1 | <?php |
||
| 20 | class NotificationPublished implements DomainEvent |
||
| 21 | { |
||
| 22 | private $notificationId; |
||
| 23 | private $userId; |
||
| 24 | private $body; |
||
| 25 | private $status; |
||
| 26 | private $occurredOn; |
||
| 27 | |||
| 28 | public function __construct(NotificationId $notificationId, UserId $userId, NotificationBody $body) |
||
| 36 | |||
| 37 | public function notificationId() : NotificationId |
||
| 41 | |||
| 42 | public function userId() : UserId |
||
| 46 | |||
| 47 | public function body() : NotificationBody |
||
| 51 | |||
| 52 | public function status() : NotificationStatus |
||
| 56 | |||
| 57 | public function occurredOn() : \DateTimeInterface |
||
| 61 | } |
||
| 62 |