| 1 | <?php |
||
| 6 | class IronEnvelope implements Envelope |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * @var int Job ID |
||
| 10 | */ |
||
| 11 | private $id; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @var Envelope |
||
| 15 | */ |
||
| 16 | private $wrapped; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var string|null |
||
| 20 | */ |
||
| 21 | private $reservation_id; |
||
| 22 | |||
| 23 | 7 | public function __construct($id, Envelope $wrapped, $reservation_id = null) |
|
| 29 | |||
| 30 | /** |
||
| 31 | * {@inheritdoc} |
||
| 32 | */ |
||
| 33 | 1 | public function unwrap() |
|
| 37 | |||
| 38 | /** |
||
| 39 | * {@inheritdoc} |
||
| 40 | */ |
||
| 41 | 1 | public function attempts() |
|
| 45 | |||
| 46 | /** |
||
| 47 | * {@inheritdoc} |
||
| 48 | * Returns a clone of the wrapped envelope, not itself. |
||
| 49 | */ |
||
| 50 | 1 | public function retry() |
|
| 54 | |||
| 55 | 3 | public function getId() |
|
| 59 | |||
| 60 | 1 | public function getReservationId() |
|
| 64 | } |
||
| 65 |