| 1 | <?php |
||
| 8 | class Payment extends Button |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var string |
||
| 12 | */ |
||
| 13 | private $title; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | private $payload; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var PaymentSummary |
||
| 22 | */ |
||
| 23 | private $paymentSummary; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param string $payload |
||
| 27 | * @param PaymentSummary $paymentSummary |
||
| 28 | */ |
||
| 29 | 7 | public function __construct($payload, PaymentSummary $paymentSummary) |
|
| 37 | |||
| 38 | /** |
||
| 39 | * @return string |
||
| 40 | */ |
||
| 41 | 1 | public function getTitle() |
|
| 45 | |||
| 46 | /** |
||
| 47 | * @return string |
||
| 48 | */ |
||
| 49 | 1 | public function getPayload() |
|
| 53 | |||
| 54 | /** |
||
| 55 | * @return PaymentSummary |
||
| 56 | */ |
||
| 57 | 1 | public function getPaymentSummary() |
|
| 61 | |||
| 62 | /** |
||
| 63 | * @inheritdoc |
||
| 64 | */ |
||
| 65 | 1 | function jsonSerialize() |
|
| 74 | |||
| 75 | } |
||
| 76 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.