1 | <?php |
||
10 | abstract class AbstractNotificationPayload implements NotificationPayloadInterface |
||
11 | { |
||
12 | |||
13 | /** |
||
14 | * The notification ID. |
||
15 | * |
||
16 | * @var integer |
||
17 | * |
||
18 | * @JMS\Type("integer") |
||
19 | * @JMS\SerializedName("id") |
||
20 | */ |
||
21 | protected $id; |
||
22 | |||
23 | /** |
||
24 | * The notification type. |
||
25 | * |
||
26 | * @var string |
||
27 | * |
||
28 | * @JMS\Type("string") |
||
29 | * @JMS\SerializedName("type") |
||
30 | */ |
||
31 | protected $type; |
||
32 | |||
33 | /** |
||
34 | * {@inheritdoc} |
||
35 | */ |
||
36 | public function getId() |
||
40 | |||
41 | /** |
||
42 | * {@inheritdoc} |
||
43 | */ |
||
44 | public function setId($id) |
||
50 | |||
51 | /** |
||
52 | * {@inheritdoc} |
||
53 | */ |
||
54 | public function getType() |
||
58 | |||
59 | /** |
||
60 | * {@inheritdoc} |
||
61 | */ |
||
62 | public function setType($type) |
||
68 | } |
||
69 |