| 1 | <?php |
||
| 18 | trait JobTrait |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * The ID of the message. This should be set on the job receive. |
||
| 22 | * @var integer |
||
| 23 | */ |
||
| 24 | protected $id; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Stores the header. |
||
| 28 | * This can be different for each queue provider. |
||
| 29 | * |
||
| 30 | * @var mixed |
||
| 31 | */ |
||
| 32 | protected $header = []; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @inheritdoc |
||
| 36 | */ |
||
| 37 | public function getId() |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @inheritdoc |
||
| 44 | */ |
||
| 45 | public function setId($id) |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @inheritdoc |
||
| 53 | */ |
||
| 54 | public function getHeader($item, $default = null) |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @inheritdoc |
||
| 61 | */ |
||
| 62 | public function setHeader($item, $value) |
||
| 67 | } |
||
| 68 |