| 1 | <?php  | 
            ||
| 6 | class PaymentEvent extends AbstractEvent  | 
            ||
| 7 | { | 
            ||
| 8 | |||
| 9 | const NAME = 'payment';  | 
            ||
| 10 | |||
| 11 | /**  | 
            ||
| 12 | * @var int  | 
            ||
| 13 | */  | 
            ||
| 14 | protected $timestamp;  | 
            ||
| 15 | |||
| 16 | /**  | 
            ||
| 17 | * @var \Kerox\Messenger\Model\Callback\Payment  | 
            ||
| 18 | */  | 
            ||
| 19 | protected $payment;  | 
            ||
| 20 | |||
| 21 | /**  | 
            ||
| 22 | * PaymentEvent constructor.  | 
            ||
| 23 | *  | 
            ||
| 24 | * @param string $senderId  | 
            ||
| 25 | * @param string $recipientId  | 
            ||
| 26 | * @param int $timestamp  | 
            ||
| 27 | * @param \Kerox\Messenger\Model\Callback\Payment $payment  | 
            ||
| 28 | */  | 
            ||
| 29 | 1 | public function __construct(string $senderId, string $recipientId, int $timestamp, Payment $payment)  | 
            |
| 36 | |||
| 37 | /**  | 
            ||
| 38 | * @return int  | 
            ||
| 39 | */  | 
            ||
| 40 | public function getTimestamp(): int  | 
            ||
| 44 | |||
| 45 | /**  | 
            ||
| 46 | * @return \Kerox\Messenger\Model\Callback\Payment  | 
            ||
| 47 | */  | 
            ||
| 48 | public function getPayment(): Payment  | 
            ||
| 52 | |||
| 53 | /**  | 
            ||
| 54 | * @return string  | 
            ||
| 55 | */  | 
            ||
| 56 | public function getName(): string  | 
            ||
| 60 | }  | 
            ||
| 61 |