| 1 | <?php  | 
            ||
| 17 | class Notification implements \JsonSerializable  | 
            ||
| 18 | { | 
            ||
| 19 | public $id;  | 
            ||
| 20 | public $userId;  | 
            ||
| 21 | public $body;  | 
            ||
| 22 | public $publishedOn;  | 
            ||
| 23 | public $readOn;  | 
            ||
| 24 | public $status;  | 
            ||
| 25 | |||
| 26 | public function __construct(  | 
            ||
| 41 | |||
| 42 | public static function fromArray(array $notificationData) : self  | 
            ||
| 53 | |||
| 54 | public function jsonSerialize() : array  | 
            ||
| 65 | }  | 
            ||
| 66 |