@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | /** |
| 132 | 132 | * Push a new job onto the queue after a delay. |
| 133 | 133 | * |
| 134 | - * @param \DateTime|int $delay |
|
| 134 | + * @param integer $delay |
|
| 135 | 135 | * @param string $job |
| 136 | 136 | * @param mixed $data |
| 137 | 137 | * @param string $queue |
@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | /** |
| 148 | 148 | * Push a new job into the queue after a delay if job does not exist. |
| 149 | 149 | * |
| 150 | - * @param \DateTime|int $delay |
|
| 150 | + * @param integer $delay |
|
| 151 | 151 | * @param string $job |
| 152 | 152 | * @param mixed $data |
| 153 | 153 | * @param string $queue |
@@ -25,7 +25,6 @@ |
||
| 25 | 25 | /** |
| 26 | 26 | * RunJobCommand constructor. |
| 27 | 27 | * |
| 28 | - * @param LoggerInterface $logger |
|
| 29 | 28 | * @param Worker $worker |
| 30 | 29 | */ |
| 31 | 30 | public function __construct(Worker $worker) |
@@ -35,7 +35,6 @@ |
||
| 35 | 35 | * RetryCommand constructor. |
| 36 | 36 | * |
| 37 | 37 | * @param JobQueue $queue |
| 38 | - * @param MongoDriverInterface $mongoDriver |
|
| 39 | 38 | */ |
| 40 | 39 | public function __construct(JobQueue $queue, FailedJobProviderInterface $failer) |
| 41 | 40 | { |
@@ -70,7 +70,6 @@ |
||
| 70 | 70 | /** |
| 71 | 71 | * Worker constructor. |
| 72 | 72 | * |
| 73 | - * @param QueueInterface $queue |
|
| 74 | 73 | * @param JobProcess $process |
| 75 | 74 | * @param FailedJobProviderInterface $failer |
| 76 | 75 | * @param ExceptionHandlerInterface $exceptions |
@@ -43,7 +43,6 @@ |
||
| 43 | 43 | * @param string $connectionName |
| 44 | 44 | * @param JobContractInterface $job |
| 45 | 45 | * @param Exception $exception |
| 46 | - * @param array $config |
|
| 47 | 46 | */ |
| 48 | 47 | public function __construct(string $connectionName, JobContractInterface $job, Exception $exception) |
| 49 | 48 | { |
@@ -34,7 +34,6 @@ |
||
| 34 | 34 | * |
| 35 | 35 | * @param string $connectionName |
| 36 | 36 | * @param JobContractInterface $job |
| 37 | - * @param array $config |
|
| 38 | 37 | */ |
| 39 | 38 | public function __construct(string $connectionName, JobContractInterface $job) |
| 40 | 39 | { |
@@ -34,7 +34,6 @@ |
||
| 34 | 34 | * |
| 35 | 35 | * @param string $connectionName |
| 36 | 36 | * @param JobContractInterface $job |
| 37 | - * @param array $config |
|
| 38 | 37 | */ |
| 39 | 38 | public function __construct(string $connectionName, JobContractInterface $job) |
| 40 | 39 | { |
@@ -141,7 +141,6 @@ |
||
| 141 | 141 | /** |
| 142 | 142 | * Mock mongo job contract |
| 143 | 143 | * |
| 144 | - * @param Job $job |
|
| 145 | 144 | * @param JobInterface|null $jobInstance |
| 146 | 145 | * |
| 147 | 146 | * @return JobContract |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | * @param mixed $data |
| 93 | 93 | * @param string $queue |
| 94 | 94 | * |
| 95 | - * @return mixed |
|
| 95 | + * @return \MongoDB\InsertOneResult |
|
| 96 | 96 | */ |
| 97 | 97 | public function push(string $job, array $data = [], ?string $queue = null) |
| 98 | 98 | { |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | * |
| 105 | 105 | * @param string $queue |
| 106 | 106 | * |
| 107 | - * @return null|JobContractInterface |
|
| 107 | + * @return JobContract|null |
|
| 108 | 108 | */ |
| 109 | 109 | public function pop(?string $queue = null): ?JobContractInterface |
| 110 | 110 | { |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | * @param string|null $queue |
| 142 | 142 | * @param array $options |
| 143 | 143 | * |
| 144 | - * @return mixed |
|
| 144 | + * @return \MongoDB\InsertOneResult |
|
| 145 | 145 | */ |
| 146 | 146 | public function pushRaw(string $payload, ?string $queue = null, array $options = []) |
| 147 | 147 | { |
@@ -151,12 +151,12 @@ discard block |
||
| 151 | 151 | /** |
| 152 | 152 | * Push a new job onto the queue after a delay. |
| 153 | 153 | * |
| 154 | - * @param DateInterval|int $delay |
|
| 154 | + * @param integer $delay |
|
| 155 | 155 | * @param string $job |
| 156 | 156 | * @param array $data |
| 157 | 157 | * @param string $queue |
| 158 | 158 | * |
| 159 | - * @return mixed |
|
| 159 | + * @return \MongoDB\InsertOneResult |
|
| 160 | 160 | */ |
| 161 | 161 | public function later($delay, string $job, array $data = [], ?string $queue = null) |
| 162 | 162 | { |
@@ -166,11 +166,11 @@ discard block |
||
| 166 | 166 | /** |
| 167 | 167 | * Push an array of jobs onto the queue. |
| 168 | 168 | * |
| 169 | - * @param array $jobs |
|
| 169 | + * @param string[] $jobs |
|
| 170 | 170 | * @param mixed $data |
| 171 | 171 | * @param string $queue |
| 172 | 172 | * |
| 173 | - * @return mixed |
|
| 173 | + * @return \MongoDB\InsertManyResult |
|
| 174 | 174 | */ |
| 175 | 175 | public function bulk(array $jobs, array $data = [], ?string $queue = null) |
| 176 | 176 | { |
@@ -189,9 +189,9 @@ discard block |
||
| 189 | 189 | * Release a reserved job back onto the queue. |
| 190 | 190 | * |
| 191 | 191 | * @param Job $job |
| 192 | - * @param DateInterval|int $delay |
|
| 192 | + * @param integer $delay |
|
| 193 | 193 | * |
| 194 | - * @return mixed |
|
| 194 | + * @return \MongoDB\InsertOneResult |
|
| 195 | 195 | */ |
| 196 | 196 | public function release(Job $job, $delay) |
| 197 | 197 | { |
@@ -203,7 +203,7 @@ discard block |
||
| 203 | 203 | * |
| 204 | 204 | * @param $id |
| 205 | 205 | * |
| 206 | - * @return null|JobContractInterface |
|
| 206 | + * @return null|JobContract |
|
| 207 | 207 | */ |
| 208 | 208 | public function getJobById($id): ?JobContractInterface |
| 209 | 209 | { |
@@ -318,7 +318,7 @@ discard block |
||
| 318 | 318 | * @param string $payload |
| 319 | 319 | * @param int $attempts |
| 320 | 320 | * |
| 321 | - * @return mixed |
|
| 321 | + * @return \MongoDB\InsertOneResult |
|
| 322 | 322 | */ |
| 323 | 323 | protected function pushToDatabase($delay, $queue, $payload, $attempts = 0) |
| 324 | 324 | { |
@@ -330,7 +330,7 @@ discard block |
||
| 330 | 330 | /** |
| 331 | 331 | * Get the "available at" UNIX timestamp. |
| 332 | 332 | * |
| 333 | - * @param DateInterval|int $delay |
|
| 333 | + * @param integer $delay |
|
| 334 | 334 | * |
| 335 | 335 | * @return int |
| 336 | 336 | */ |
@@ -358,7 +358,7 @@ discard block |
||
| 358 | 358 | * |
| 359 | 359 | * @param string|null $queue |
| 360 | 360 | * |
| 361 | - * @return null|JobContractInterface |
|
| 361 | + * @return JobContract|null |
|
| 362 | 362 | */ |
| 363 | 363 | protected function getNextAvailableJob($queue) |
| 364 | 364 | { |