| Total Complexity | 4 |
| Total Lines | 64 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types = 1); |
||
| 10 | class ClosePaymentRequest |
||
| 11 | { |
||
| 12 | |||
| 13 | /** @var string */ |
||
| 14 | private $merchantId; |
||
| 15 | |||
| 16 | /** @var string */ |
||
| 17 | private $payId; |
||
| 18 | |||
| 19 | /** @var int|null */ |
||
| 20 | private $totalAmount; |
||
| 21 | |||
| 22 | 2 | public function __construct( |
|
| 23 | string $merchantId, |
||
| 24 | string $payId, |
||
| 25 | ?int $totalAmount = null |
||
| 26 | ) |
||
| 27 | { |
||
| 28 | 2 | Validator::checkPayId($payId); |
|
| 29 | |||
| 30 | 2 | $this->merchantId = $merchantId; |
|
| 31 | 2 | $this->payId = $payId; |
|
| 32 | 2 | $this->totalAmount = $totalAmount; |
|
| 33 | 2 | } |
|
| 34 | |||
| 35 | 1 | public function send(ApiClient $apiClient): PaymentResponse |
|
| 74 | ); |
||
| 75 | } |
||
| 78 |