| 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 | 7 | /** | |
| 19 | * @var string|null | ||
| 20 | 7 | */ | |
| 21 | 7 | private $reservation_id; | |
| 22 | 7 | ||
| 23 | public function __construct($id, Envelope $wrapped, $reservation_id = null) | ||
| 29 | 1 | ||
| 30 | /** | ||
| 31 |      * {@inheritdoc} | ||
| 32 | */ | ||
| 33 | public function unwrap() | ||
| 37 | 1 | ||
| 38 | /** | ||
| 39 |      * {@inheritdoc} | ||
| 40 | */ | ||
| 41 | public function attempts() | ||
| 45 | |||
| 46 | 1 | /** | |
| 47 |      * {@inheritdoc} | ||
| 48 | * Returns a clone of the wrapped envelope, not itself. | ||
| 49 | 3 | */ | |
| 50 | public function retry() | ||
| 54 | |||
| 55 | public function getId() | ||
| 59 | |||
| 60 | public function getReservationId() | ||
| 64 | } | ||
| 65 |