1 | <?php |
||
16 | class Notification |
||
17 | { |
||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $payload; |
||
22 | |||
23 | /** |
||
24 | * @var \ArrayIterator |
||
25 | */ |
||
26 | protected $recipients; |
||
27 | |||
28 | /** |
||
29 | * Custom properties |
||
30 | * |
||
31 | * @var array |
||
32 | */ |
||
33 | private $customNotificationData = array(); |
||
34 | |||
35 | /** |
||
36 | * @return string |
||
37 | */ |
||
38 | public function getPayload() |
||
42 | |||
43 | /** |
||
44 | * @param string $payload |
||
45 | * @return $this |
||
46 | */ |
||
47 | public function setPayload($payload) |
||
52 | |||
53 | /** |
||
54 | * @return \ArrayIterator |
||
55 | */ |
||
56 | public function getRecipients() |
||
60 | |||
61 | /** |
||
62 | * @param \ArrayIterator $recipients |
||
63 | * @return $this |
||
64 | */ |
||
65 | public function setRecipients(\ArrayIterator $recipients) |
||
70 | |||
71 | /** |
||
72 | * @return array |
||
73 | */ |
||
74 | public function getCustomNotificationData() |
||
78 | |||
79 | /** |
||
80 | * @param array $customNotificationData |
||
81 | * @return $this |
||
82 | */ |
||
83 | public function setCustomNotificationData($customNotificationData) |
||
88 | } |
||
89 |
Very long variable names usually make code harder to read. It is therefore recommended not to make variable names too verbose.