1 | <?php |
||
18 | class Notification |
||
19 | { |
||
20 | /** |
||
21 | * An arbitrary, opaque value that identifies this notification. |
||
22 | * This identifier is used for reporting errors to your server |
||
23 | * |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $identifier; |
||
27 | |||
28 | /** |
||
29 | * @var string |
||
30 | */ |
||
31 | protected $type; |
||
32 | |||
33 | /** |
||
34 | * @var string |
||
35 | */ |
||
36 | protected $payload; |
||
37 | |||
38 | /** |
||
39 | * @var \ArrayIterator |
||
40 | */ |
||
41 | protected $recipients; |
||
42 | |||
43 | /** |
||
44 | * Custom properties |
||
45 | * |
||
46 | * @var array |
||
47 | */ |
||
48 | private $customNotificationData = array(); |
||
49 | |||
50 | /** |
||
51 | * @return string |
||
52 | */ |
||
53 | public function getIdentifier() |
||
57 | |||
58 | /** |
||
59 | * @param string $identifier |
||
60 | * @return Notification |
||
61 | */ |
||
62 | public function setIdentifier($identifier) |
||
67 | |||
68 | /** |
||
69 | * @return string |
||
70 | */ |
||
71 | public function getType() |
||
75 | |||
76 | /** |
||
77 | * @param string $type |
||
78 | * @return $this |
||
79 | */ |
||
80 | public function setType($type) |
||
85 | |||
86 | /** |
||
87 | * @return string |
||
88 | */ |
||
89 | public function getPayload() |
||
93 | |||
94 | /** |
||
95 | * @param string $payload |
||
96 | * @return $this |
||
97 | */ |
||
98 | public function setPayload($payload) |
||
103 | |||
104 | /** |
||
105 | * @return \ArrayIterator |
||
106 | */ |
||
107 | public function getRecipients() |
||
111 | |||
112 | /** |
||
113 | * @param \ArrayIterator $recipients |
||
114 | * @return $this |
||
115 | */ |
||
116 | public function setRecipients(\ArrayIterator $recipients) |
||
121 | |||
122 | /** |
||
123 | * @return array |
||
124 | */ |
||
125 | public function getCustomNotificationData() |
||
129 | |||
130 | /** |
||
131 | * @param array $customNotificationData |
||
132 | * @return $this |
||
133 | */ |
||
134 | public function setCustomNotificationData($customNotificationData) |
||
139 | } |
||
140 |
Very long variable names usually make code harder to read. It is therefore recommended not to make variable names too verbose.