1 | <?php |
||
36 | class DoctrineMessage { |
||
37 | /** |
||
38 | * @ORM\Id |
||
39 | * @ORM\GeneratedValue |
||
40 | * @ORM\Column(type="integer") |
||
41 | */ |
||
42 | private $id; |
||
43 | |||
44 | /** |
||
45 | * @var \DateTime $created |
||
46 | * |
||
47 | * @Gedmo\Timestampable(on="create") |
||
48 | * @ORM\Column(type="datetime") |
||
49 | */ |
||
50 | private $created; |
||
51 | |||
52 | /** |
||
53 | * @var \DateTime $updated |
||
54 | * |
||
55 | * @Gedmo\Timestampable(on="update") |
||
56 | * @ORM\Column(type="datetime") |
||
57 | */ |
||
58 | private $updated; |
||
59 | |||
60 | /** |
||
61 | * |
||
62 | * @ORM\Column(type="string") |
||
63 | */ |
||
64 | private $queue; |
||
65 | |||
66 | /** |
||
67 | * |
||
68 | * @ORM\Column(type="boolean") |
||
69 | */ |
||
70 | private $delivered; |
||
71 | |||
72 | /** |
||
73 | * |
||
74 | * @ORM\Column(type="array") |
||
75 | */ |
||
76 | private $message; |
||
77 | |||
78 | /** |
||
79 | * @ORM\Column(type="integer") |
||
80 | */ |
||
81 | private $length; |
||
82 | |||
83 | /** |
||
84 | * Get id |
||
85 | * |
||
86 | * @return integer |
||
87 | */ |
||
88 | public function getId() |
||
92 | |||
93 | /** |
||
94 | * Set message |
||
95 | * |
||
96 | * @param array $message |
||
97 | * |
||
98 | * @return DoctrineMessage |
||
99 | */ |
||
100 | public function setMessage($message) |
||
106 | |||
107 | /** |
||
108 | * Get message |
||
109 | * |
||
110 | * @return array |
||
111 | */ |
||
112 | public function getMessage() |
||
116 | |||
117 | /** |
||
118 | * Set queue |
||
119 | * |
||
120 | * @param string $queue |
||
121 | * |
||
122 | * @return DoctrineMessage |
||
123 | */ |
||
124 | public function setQueue($queue) |
||
130 | |||
131 | /** |
||
132 | * Get queue |
||
133 | * |
||
134 | * @return string |
||
135 | */ |
||
136 | public function getQueue() |
||
140 | |||
141 | /** |
||
142 | * Set delivered |
||
143 | * |
||
144 | * @param boolean $delivered |
||
145 | * |
||
146 | * @return DoctrineMessage |
||
147 | */ |
||
148 | public function setDelivered($delivered) |
||
154 | |||
155 | /** |
||
156 | * Get delivered |
||
157 | * |
||
158 | * @return boolean |
||
159 | */ |
||
160 | public function getDelivered() |
||
164 | |||
165 | /** |
||
166 | * Set created |
||
167 | * |
||
168 | * @param \DateTime $created |
||
169 | * |
||
170 | * @return DoctrineMessage |
||
171 | */ |
||
172 | public function setCreated($created) |
||
178 | |||
179 | /** |
||
180 | * Get created |
||
181 | * |
||
182 | * @return \DateTime |
||
183 | */ |
||
184 | public function getCreated() |
||
188 | |||
189 | /** |
||
190 | * Set updated |
||
191 | * |
||
192 | * @param \DateTime $updated |
||
193 | * |
||
194 | * @return DoctrineMessage |
||
195 | */ |
||
196 | public function setUpdated($updated) |
||
202 | |||
203 | /** |
||
204 | * Get updated |
||
205 | * |
||
206 | * @return \DateTime |
||
207 | */ |
||
208 | public function getUpdated() |
||
212 | |||
213 | /** |
||
214 | * Set length |
||
215 | * |
||
216 | * @param integer $length |
||
217 | * |
||
218 | * @return DoctrineMessage |
||
219 | */ |
||
220 | public function setLength($length) |
||
226 | |||
227 | /** |
||
228 | * Get length |
||
229 | * |
||
230 | * @return integer |
||
231 | */ |
||
232 | public function getLength() |
||
236 | } |
||
237 |