| 1 | <?php |
||
| 9 | class Message |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var int |
||
| 13 | */ |
||
| 14 | private $id; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var int |
||
| 18 | */ |
||
| 19 | private $userId; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var int |
||
| 23 | */ |
||
| 24 | private $staffId; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var string |
||
| 28 | */ |
||
| 29 | private $content; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @var string |
||
| 33 | */ |
||
| 34 | private $contentHtml; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @var array |
||
| 38 | */ |
||
| 39 | private $attachments; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @var string |
||
| 43 | */ |
||
| 44 | private $note; |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @var \DateTime |
||
| 48 | */ |
||
| 49 | private $createdAt; |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @return int |
||
| 53 | */ |
||
| 54 | public function getId() |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @param int $id |
||
| 61 | * @return $this |
||
| 62 | */ |
||
| 63 | public function setId($id) |
||
| 69 | |||
| 70 | /** |
||
| 71 | * @return int |
||
| 72 | */ |
||
| 73 | public function getUserId() |
||
| 77 | |||
| 78 | /** |
||
| 79 | * @param int $userId |
||
| 80 | * @return $this |
||
| 81 | */ |
||
| 82 | public function setUserId($userId) |
||
| 88 | |||
| 89 | /** |
||
| 90 | * @return int |
||
| 91 | */ |
||
| 92 | public function getStaffId() |
||
| 93 | { |
||
| 94 | return $this->staffId; |
||
| 95 | } |
||
| 96 | |||
| 97 | /** |
||
| 98 | * @param int $staffId |
||
| 99 | * @return $this |
||
| 100 | */ |
||
| 101 | public function setStaffId($staffId) |
||
| 102 | { |
||
| 103 | $this->staffId = $staffId; |
||
| 104 | |||
| 105 | return $this; |
||
| 106 | } |
||
| 107 | |||
| 108 | /** |
||
| 109 | * @return string |
||
| 110 | */ |
||
| 111 | public function getContent() |
||
| 115 | |||
| 116 | /** |
||
| 117 | * @param string $content |
||
| 118 | * @return $this |
||
| 119 | */ |
||
| 120 | public function setContent($content) |
||
| 126 | |||
| 127 | /** |
||
| 128 | * @return string |
||
| 129 | */ |
||
| 130 | public function getContentHtml() |
||
| 134 | |||
| 135 | /** |
||
| 136 | * @param string $contentHtml |
||
| 137 | * @return $this |
||
| 138 | */ |
||
| 139 | public function setContentHtml($contentHtml) |
||
| 145 | |||
| 146 | /** |
||
| 147 | * @return array |
||
| 148 | */ |
||
| 149 | public function getAttachments() |
||
| 153 | |||
| 154 | /** |
||
| 155 | * @param array $attachments |
||
| 156 | * @return $this |
||
| 157 | */ |
||
| 158 | public function setAttachments($attachments) |
||
| 164 | |||
| 165 | /** |
||
| 166 | * @return string |
||
| 167 | */ |
||
| 168 | public function getNote() |
||
| 172 | |||
| 173 | /** |
||
| 174 | * @param string $note |
||
| 175 | * @return $this |
||
| 176 | */ |
||
| 177 | public function setNote($note) |
||
| 183 | |||
| 184 | /** |
||
| 185 | * @return \DateTime |
||
| 186 | */ |
||
| 187 | public function getCreatedAt() |
||
| 191 | |||
| 192 | /** |
||
| 193 | * @param \DateTime $createdAt |
||
| 194 | * @return $this |
||
| 195 | */ |
||
| 196 | public function setCreatedAt(\DateTime $createdAt) |
||
| 202 | } |
||
| 203 |