| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function __construct( |
||
| 30 | NotificationId $notificationId, |
||
| 31 | UserId $userId, |
||
| 32 | NotificationType $type, |
||
| 33 | NotificationBody $body |
||
| 34 | ) { |
||
| 35 | $this->notificationId = $notificationId; |
||
| 36 | $this->userId = $userId; |
||
| 37 | $this->type = $type; |
||
| 38 | $this->body = $body; |
||
| 39 | $this->status = NotificationStatus::unread(); |
||
| 40 | $this->occurredOn = new \DateTimeImmutable(); |
||
| 41 | } |
||
| 42 | |||
| 73 |