1 | <?php |
||
9 | class Payment extends AbstractButton |
||
10 | { |
||
11 | /** |
||
12 | * @var string |
||
13 | */ |
||
14 | protected $title; |
||
15 | |||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | protected $payload; |
||
20 | |||
21 | /** |
||
22 | * @var \Kerox\Messenger\Model\Common\Button\Payment\PaymentSummary |
||
23 | */ |
||
24 | protected $paymentSummary; |
||
25 | |||
26 | /** |
||
27 | * Payment constructor. |
||
28 | * |
||
29 | * @throws \Kerox\Messenger\Exception\MessengerException |
||
30 | */ |
||
31 | 1 | public function __construct(string $payload, PaymentSummary $paymentSummary) |
|
41 | |||
42 | /** |
||
43 | * @throws \Kerox\Messenger\Exception\MessengerException |
||
44 | * |
||
45 | * @return \Kerox\Messenger\Model\Common\Button\Payment |
||
46 | */ |
||
47 | 1 | public static function create(string $payload, PaymentSummary $paymentSummary): self |
|
51 | |||
52 | 1 | public function toArray(): array |
|
63 | } |
||
64 |