| 1 | <?php |
||
| 9 | class DeliveryEvent extends AbstractEvent |
||
| 10 | { |
||
| 11 | public const NAME = 'delivery'; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @var \Kerox\Messenger\Model\Callback\Delivery |
||
| 15 | */ |
||
| 16 | protected $delivery; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * DeliveryEvent constructor. |
||
| 20 | */ |
||
| 21 | 2 | public function __construct(string $senderId, string $recipientId, Delivery $delivery) |
|
| 27 | |||
| 28 | 2 | public function getDelivery(): Delivery |
|
| 32 | |||
| 33 | 1 | public function getName(): string |
|
| 37 | |||
| 38 | /** |
||
| 39 | * @return \Kerox\Messenger\Event\DeliveryEvent |
||
| 40 | */ |
||
| 41 | 1 | public static function create(array $payload): self |
|
| 49 | } |
||
| 50 |