@@ 480-490 (lines=11) @@ | ||
477 | /** |
|
478 | * @return string A json_encoded version of a queueable version of the object |
|
479 | */ |
|
480 | public function toMessage() |
|
481 | { |
|
482 | $arr = array( |
|
483 | 'worker' => $this->getWorkerName(), |
|
484 | 'args' => $this->getArgs(), |
|
485 | 'method' => $this->getMethod(), |
|
486 | 'expiresAt' => ($expiresAt = $this->getExpiresAt()) ? $expiresAt->getTimestamp() : null, |
|
487 | ); |
|
488 | ||
489 | return json_encode($arr); |
|
490 | } |
|
491 | ||
492 | /** |
|
493 | * @param string $message a json_encoded version of the object |
@@ 28-39 (lines=12) @@ | ||
25 | /** |
|
26 | * @return string A json_encoded version of a queueable version of the object |
|
27 | */ |
|
28 | public function toMessage() |
|
29 | { |
|
30 | $arr = array( |
|
31 | 'args' => $this->getArgs(), |
|
32 | 'id' => $this->getId(), |
|
33 | 'expiresAt' => ($expiresAt = $this->getExpiresAt()) ? $expiresAt->getTimestamp() : null, |
|
34 | 'method' => $this->getMethod(), |
|
35 | 'worker' => $this->getWorkerName(), |
|
36 | ); |
|
37 | ||
38 | return json_encode($arr); |
|
39 | } |
|
40 | ||
41 | /** |
|
42 | * @param string $message a json_encoded version of the object |