@@ -11,6 +11,9 @@ |
||
| 11 | 11 | protected $dm; |
| 12 | 12 | protected $documentName; |
| 13 | 13 | |
| 14 | + /** |
|
| 15 | + * @param string $documentName |
|
| 16 | + */ |
|
| 14 | 17 | public function __construct(DocumentManager $dm, $documentName) |
| 15 | 18 | { |
| 16 | 19 | $this->dm = $dm; |
@@ -33,6 +33,9 @@ |
||
| 33 | 33 | return $job; |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | + /** |
|
| 37 | + * @param string $workerName |
|
| 38 | + */ |
|
| 36 | 39 | public function getJob($workerName = null, $methodName = null, $prioritize = true) |
| 37 | 40 | { |
| 38 | 41 | if ($methodName) { |
@@ -104,6 +104,11 @@ |
||
| 104 | 104 | } |
| 105 | 105 | } |
| 106 | 106 | |
| 107 | + /** |
|
| 108 | + * @param integer|null $time |
|
| 109 | + * @param string $method |
|
| 110 | + * @param integer $priority |
|
| 111 | + */ |
|
| 107 | 112 | protected function assertJob(Job $job, $time, $method, $priority = null) { |
| 108 | 113 | $this->assertNotEmpty($job->getId(), "Job should have an id"); |
| 109 | 114 | |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | } |
| 128 | 128 | |
| 129 | 129 | /** |
| 130 | - * @return the $className |
|
| 130 | + * @return string $className |
|
| 131 | 131 | */ |
| 132 | 132 | public function getClassName() |
| 133 | 133 | { |
@@ -298,7 +298,7 @@ discard block |
||
| 298 | 298 | } |
| 299 | 299 | |
| 300 | 300 | /** |
| 301 | - * @param field_type $createdAt |
|
| 301 | + * @param \DateTime $createdAt |
|
| 302 | 302 | */ |
| 303 | 303 | public function setCreatedAt($createdAt) |
| 304 | 304 | { |
@@ -306,7 +306,7 @@ discard block |
||
| 306 | 306 | } |
| 307 | 307 | |
| 308 | 308 | /** |
| 309 | - * @param field_type $updatedAt |
|
| 309 | + * @param \DateTime $updatedAt |
|
| 310 | 310 | */ |
| 311 | 311 | public function setUpdatedAt($updatedAt) |
| 312 | 312 | { |
@@ -361,7 +361,7 @@ discard block |
||
| 361 | 361 | } |
| 362 | 362 | |
| 363 | 363 | /** |
| 364 | - * @return the $worker |
|
| 364 | + * @return null|Worker $worker |
|
| 365 | 365 | */ |
| 366 | 366 | public function getWorker() |
| 367 | 367 | { |
@@ -392,7 +392,7 @@ discard block |
||
| 392 | 392 | } |
| 393 | 393 | |
| 394 | 394 | /** |
| 395 | - * @param field_type $elapsed |
|
| 395 | + * @param double $elapsed |
|
| 396 | 396 | */ |
| 397 | 397 | public function setElapsed($elapsed) |
| 398 | 398 | { |
@@ -53,6 +53,9 @@ discard block |
||
| 53 | 53 | return new $this->jobClass($this, $batch, $priority, $dateTime); |
| 54 | 54 | } |
| 55 | 55 | |
| 56 | + /** |
|
| 57 | + * @param integer $priority |
|
| 58 | + */ |
|
| 56 | 59 | public function later($delay = 0, $priority = null) |
| 57 | 60 | { |
| 58 | 61 | $job = $this->at(time() + $delay, false, $priority); |
@@ -60,6 +63,9 @@ discard block |
||
| 60 | 63 | return $job; |
| 61 | 64 | } |
| 62 | 65 | |
| 66 | + /** |
|
| 67 | + * @param integer $priority |
|
| 68 | + */ |
|
| 63 | 69 | public function batchLater($delay = 0, $priority = null) |
| 64 | 70 | { |
| 65 | 71 | $job = $this->at($delay, true, $priority); |
@@ -67,6 +73,10 @@ discard block |
||
| 67 | 73 | return $job; |
| 68 | 74 | } |
| 69 | 75 | |
| 76 | + /** |
|
| 77 | + * @param integer $time |
|
| 78 | + * @param integer $priority |
|
| 79 | + */ |
|
| 70 | 80 | public function batchAt($time = null, $priority = null) |
| 71 | 81 | { |
| 72 | 82 | return $this->at($time, true, $priority); |