Total Complexity | 4 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
13 | final class AssertRequest extends Request |
||
14 | { |
||
15 | use RequestCommonsTrait; |
||
16 | public const API_PATH = '/Payment/v1/PaymentPage/Assert'; |
||
17 | public const RESPONSE_CLASS = AssertResponse::class; |
||
18 | |||
19 | /** |
||
20 | * @var string |
||
21 | * @SerializedName("Token") |
||
22 | */ |
||
23 | private $token; |
||
24 | |||
25 | public function __construct( |
||
26 | RequestConfig $requestConfig, |
||
27 | string $token |
||
28 | ) { |
||
29 | $this->token = $token; |
||
30 | |||
31 | parent::__construct($requestConfig); |
||
32 | } |
||
33 | |||
34 | public function getToken(): string |
||
35 | { |
||
36 | return $this->token; |
||
37 | } |
||
38 | |||
39 | public function setToken(string $token): self |
||
44 | } |
||
45 | |||
46 | public function execute(): AssertResponse |
||
52 | } |
||
53 | } |
||
54 |