| 1 | <?php |
||
| 8 | final class ProcessCallbackTask extends CallbackTask implements Expires, Process |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var null|int |
||
| 12 | */ |
||
| 13 | private $id; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var null|int |
||
| 17 | */ |
||
| 18 | private $expiredAt; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @inheritdoc |
||
| 22 | * |
||
| 23 | * @return null|int |
||
| 24 | */ |
||
| 25 | 1 | public function getId() |
|
| 29 | |||
| 30 | /** |
||
| 31 | * @inheritdoc |
||
| 32 | * |
||
| 33 | * @param int $id |
||
| 34 | * |
||
| 35 | * @return $this |
||
| 36 | */ |
||
| 37 | 1 | public function setId($id) |
|
| 43 | |||
| 44 | /** |
||
| 45 | * @inheritdoc |
||
| 46 | * |
||
| 47 | * @return int |
||
| 48 | */ |
||
| 49 | 1 | public function getExpiresIn() |
|
| 53 | |||
| 54 | /** |
||
| 55 | * @inheritdoc |
||
| 56 | * |
||
| 57 | * @param int $startedAt |
||
| 58 | * |
||
| 59 | * @return bool |
||
| 60 | */ |
||
| 61 | 1 | public function shouldExpire($startedAt) |
|
| 67 | |||
| 68 | /** |
||
| 69 | * Checks whether this task has expired. |
||
| 70 | * |
||
| 71 | * @return bool |
||
| 72 | */ |
||
| 73 | 1 | public function hasExpired() |
|
| 77 | } |
||
| 78 |