| Total Complexity | 3 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 5 | class PaymentKey extends Response |
||
| 6 | { |
||
| 7 | private const PAYMENT_PAGE = 'https://rest.goldenpay.az/web/paypage?payment_key='; |
||
| 8 | |||
| 9 | /** |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | private $paymentKey; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * PaymentKey constructor. |
||
| 16 | * |
||
| 17 | * @param string $paymentKey |
||
| 18 | * @param int|null $code |
||
| 19 | * @param string|null $message |
||
| 20 | */ |
||
| 21 | public function __construct(string $paymentKey, ?int $code = null, ?string $message = null) |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @return string |
||
| 30 | */ |
||
| 31 | public function getPaymentKey(): string |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return string |
||
| 38 | */ |
||
| 39 | public function paymentUrl(): string |
||
| 44 |