1 | <?php |
||
19 | class PublishNotificationCommand |
||
20 | { |
||
21 | private $notificationId; |
||
22 | private $type; |
||
23 | private $body; |
||
24 | private $userId; |
||
25 | |||
26 | public function __construct(string $type, string $body, string $userId, string $notificationId = null) |
||
33 | |||
34 | public function notificationId() : string |
||
38 | |||
39 | public function type() : string |
||
43 | |||
44 | public function body() : string |
||
48 | |||
49 | public function userId() : string |
||
53 | } |
||
54 |