1 | <?php |
||
8 | class SqsQueueStoreAdapter implements QueueStoreAdapterInterface |
||
9 | { |
||
10 | /** |
||
11 | * @var string the name of the queue to store the messages |
||
12 | */ |
||
13 | private $queueName; |
||
14 | /** |
||
15 | * @var string the URL of the queue to store the messages |
||
16 | */ |
||
17 | private $queueUrl; |
||
18 | /** |
||
19 | * @var SqsQueueStoreAdapter |
||
20 | */ |
||
21 | protected $connection; |
||
22 | |||
23 | /** |
||
24 | * PdoQueueStoreAdapter constructor. |
||
25 | * |
||
26 | * @param SqsQueueStoreConnection $connection |
||
27 | * @param string $queueName the name of the queue in the SQS where the mail jobs are stored |
||
28 | */ |
||
29 | public function __construct(SqsQueueStoreConnection $connection, $queueName = 'mail_queue') |
||
35 | |||
36 | /** |
||
37 | * @inheritdoc |
||
38 | */ |
||
39 | public function init() |
||
51 | |||
52 | /** |
||
53 | * @return SqsQueueStoreConnection |
||
54 | */ |
||
55 | public function getConnection() |
||
59 | |||
60 | /** |
||
61 | * @param MailJobInterface|SqsMailJob $mailJob |
||
62 | * |
||
63 | * @return bool whether it has been successfully queued or not |
||
64 | */ |
||
65 | public function enqueue(MailJobInterface $mailJob) |
||
75 | |||
76 | /** |
||
77 | * Returns a MailJob fetched from Amazon SQS. |
||
78 | * |
||
79 | * @return MailJobInterface|SqsMailJob |
||
80 | */ |
||
81 | public function dequeue() |
||
97 | |||
98 | /** |
||
99 | * @param MailJobInterface|SqsMailJob $mailJob |
||
100 | * |
||
101 | * @return bool |
||
102 | */ |
||
103 | public function ack(MailJobInterface $mailJob) |
||
126 | |||
127 | /** |
||
128 | * @inheritdoc |
||
129 | */ |
||
130 | public function isEmpty() |
||
138 | } |
||
139 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..