| 1 | <?php |
||
| 18 | class Notification |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | protected $type; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var string |
||
| 27 | */ |
||
| 28 | protected $payload; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var \ArrayIterator |
||
| 32 | */ |
||
| 33 | protected $recipients; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Custom properties |
||
| 37 | * |
||
| 38 | * @var array |
||
| 39 | */ |
||
| 40 | private $customNotificationData = array(); |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @return string |
||
| 44 | */ |
||
| 45 | public function getType() |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @param string $type |
||
| 52 | * @return $this |
||
| 53 | */ |
||
| 54 | public function setType($type) |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @return string |
||
| 62 | */ |
||
| 63 | public function getPayload() |
||
| 67 | |||
| 68 | /** |
||
| 69 | * @param string $payload |
||
| 70 | * @return $this |
||
| 71 | */ |
||
| 72 | public function setPayload($payload) |
||
| 77 | |||
| 78 | /** |
||
| 79 | * @return \ArrayIterator |
||
| 80 | */ |
||
| 81 | public function getRecipients() |
||
| 85 | |||
| 86 | /** |
||
| 87 | * @param \ArrayIterator $recipients |
||
| 88 | * @return $this |
||
| 89 | */ |
||
| 90 | public function setRecipients(\ArrayIterator $recipients) |
||
| 95 | |||
| 96 | /** |
||
| 97 | * @return array |
||
| 98 | */ |
||
| 99 | public function getCustomNotificationData() |
||
| 103 | |||
| 104 | /** |
||
| 105 | * @param array $customNotificationData |
||
| 106 | * @return $this |
||
| 107 | */ |
||
| 108 | public function setCustomNotificationData($customNotificationData) |
||
| 113 | } |
||
| 114 |
Very long variable names usually make code harder to read. It is therefore recommended not to make variable names too verbose.