1 | <?php |
||
7 | final class PaymentRequiredApiProblem extends ApiProblem |
||
8 | { |
||
9 | /** |
||
10 | * @var string[] |
||
11 | */ |
||
12 | private $paymentTypes = []; |
||
13 | |||
14 | /** |
||
15 | * @return int |
||
16 | */ |
||
17 | 2 | public function getStatus(): int |
|
21 | |||
22 | /** |
||
23 | * @return string |
||
24 | */ |
||
25 | 2 | public function getType(): string |
|
29 | |||
30 | /** |
||
31 | * @param array $paymentTypes |
||
32 | * |
||
33 | * @return ApiProblemInterface |
||
34 | */ |
||
35 | 1 | public function withPaymentTypes(array $paymentTypes): ApiProblemInterface |
|
42 | |||
43 | /** |
||
44 | * @return string[] |
||
45 | */ |
||
46 | 2 | public function getPaymentTypes(): array |
|
50 | } |
||
51 |