1 | <?php |
||
10 | class SqsMailJob extends AbstractMailObject implements MailJobInterface |
||
11 | { |
||
12 | use EventHandlerTrait; |
||
13 | |||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | private $id; |
||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | private $receiptHandle; |
||
22 | /** |
||
23 | * @var MailMessage|string the message to store |
||
24 | */ |
||
25 | private $message; |
||
26 | /** |
||
27 | * @var int |
||
28 | */ |
||
29 | private $delaySeconds; |
||
30 | /** |
||
31 | * @var int between 0 and 900 seconds |
||
32 | */ |
||
33 | private $visibilityTimeout; |
||
34 | /** |
||
35 | * @var bool |
||
36 | */ |
||
37 | private $deleted = false; |
||
38 | |||
39 | /** |
||
40 | * @inheritdoc |
||
41 | */ |
||
42 | public function __construct(array $config = []) |
||
46 | |||
47 | /** |
||
48 | * @return string |
||
49 | */ |
||
50 | public function getId() |
||
54 | |||
55 | /** |
||
56 | * @param string $anId |
||
57 | */ |
||
58 | public function setId($anId) |
||
62 | |||
63 | /** |
||
64 | * @return bool |
||
65 | */ |
||
66 | public function isNewRecord() |
||
70 | |||
71 | /** |
||
72 | * @return string |
||
73 | */ |
||
74 | public function getReceiptHandle() |
||
78 | |||
79 | /** |
||
80 | * @param string $receiptHandle |
||
81 | */ |
||
82 | public function setReceiptHandle($receiptHandle) |
||
86 | |||
87 | /** |
||
88 | * @inheritdoc |
||
89 | */ |
||
90 | public function getMessage() |
||
94 | |||
95 | /** |
||
96 | * @inheritdoc |
||
97 | */ |
||
98 | public function setMessage($message) |
||
102 | |||
103 | /** |
||
104 | * @return int |
||
105 | */ |
||
106 | public function getDelaySeconds() |
||
110 | |||
111 | /** |
||
112 | * @param int $delaySeconds |
||
113 | */ |
||
114 | public function setDelaySeconds($delaySeconds) |
||
121 | |||
122 | /** |
||
123 | * @return int |
||
124 | */ |
||
125 | public function getVisibilityTimeout() |
||
129 | |||
130 | /** |
||
131 | * @param int $visibilityTimeout |
||
132 | */ |
||
133 | public function setVisibilityTimeout($visibilityTimeout) |
||
137 | |||
138 | /** |
||
139 | * @return bool |
||
140 | */ |
||
141 | public function getDeleted() |
||
145 | |||
146 | /** |
||
147 | * @param bool $deleted |
||
148 | */ |
||
149 | public function setDeleted($deleted) |
||
153 | } |
||
154 |