1 | <?php |
||
9 | class SqsMailJob extends MailJob |
||
10 | { |
||
11 | use EventHandlerTrait; |
||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | private $receiptHandle; |
||
16 | /** |
||
17 | * @var MailMessage|string the message to store |
||
18 | */ |
||
19 | private $message; |
||
20 | /** |
||
21 | * @var int |
||
22 | */ |
||
23 | private $delaySeconds; |
||
24 | /** |
||
25 | * @var int between 0 and 900 seconds |
||
26 | */ |
||
27 | private $visibilityTimeout; |
||
28 | /** |
||
29 | * @var bool |
||
30 | */ |
||
31 | private $deleted = false; |
||
32 | |||
33 | /** |
||
34 | * {@inheritdoc} |
||
35 | */ |
||
36 | 4 | public function __construct(array $config = []) |
|
40 | |||
41 | /** |
||
42 | * @return bool |
||
43 | */ |
||
44 | public function isNewRecord() |
||
48 | |||
49 | /** |
||
50 | * @return string |
||
51 | */ |
||
52 | public function getReceiptHandle() |
||
56 | |||
57 | /** |
||
58 | * @param string $receiptHandle |
||
59 | */ |
||
60 | public function setReceiptHandle($receiptHandle) |
||
64 | |||
65 | /** |
||
66 | * @return int |
||
67 | */ |
||
68 | 4 | public function getDelaySeconds() |
|
72 | |||
73 | /** |
||
74 | * @param int $delaySeconds |
||
75 | */ |
||
76 | 1 | public function setDelaySeconds($delaySeconds) |
|
83 | |||
84 | /** |
||
85 | * @return int |
||
86 | */ |
||
87 | public function getVisibilityTimeout() |
||
91 | |||
92 | /** |
||
93 | * @param int $visibilityTimeout |
||
94 | */ |
||
95 | public function setVisibilityTimeout($visibilityTimeout) |
||
99 | |||
100 | /** |
||
101 | * @return bool |
||
102 | */ |
||
103 | public function getDeleted() |
||
107 | |||
108 | /** |
||
109 | * @param bool $deleted |
||
110 | */ |
||
111 | public function setDeleted($deleted) |
||
115 | } |
||
116 |