| 1 | <?php |
||
| 17 | class TestJobContract extends JobContract |
||
|
|
|||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var ContainerInterface |
||
| 21 | */ |
||
| 22 | private $_container; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Get the job identifier. |
||
| 26 | * |
||
| 27 | * @return string |
||
| 28 | */ |
||
| 29 | public function getJobId() |
||
| 33 | |||
| 34 | /** |
||
| 35 | * TestJob constructor. |
||
| 36 | * |
||
| 37 | * @param ContainerInterface $container |
||
| 38 | */ |
||
| 39 | public function __construct(ContainerInterface $container) |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Get container instance |
||
| 46 | * |
||
| 47 | * @return ContainerInterface |
||
| 48 | */ |
||
| 49 | public function getContainer() |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Delete job |
||
| 56 | * |
||
| 57 | * @throws SuccessJobException |
||
| 58 | */ |
||
| 59 | public function delete() |
||
| 63 | |||
| 64 | /** |
||
| 65 | * Get the raw body of the job. |
||
| 66 | * |
||
| 67 | * @return string |
||
| 68 | */ |
||
| 69 | public function getRawBody() |
||
| 73 | } |
||
| 74 |