| Total Complexity | 5 |
| Total Lines | 50 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | class CreateWalletRequest implements RequestInterface |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * Link to the payment notification handler |
||
| 22 | * |
||
| 23 | * @var string|null |
||
| 24 | */ |
||
| 25 | private ?string $callbackLink; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Password |
||
| 29 | * |
||
| 30 | * @var string|null |
||
| 31 | */ |
||
| 32 | private ?string $password; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param string|null $callbackLink |
||
| 36 | * @param string|null $password |
||
| 37 | */ |
||
| 38 | public function __construct(string $callbackLink = null, string $password = null) |
||
| 39 | { |
||
| 40 | $this->callbackLink = $callbackLink; |
||
| 41 | $this->password = $password; |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @return string |
||
| 46 | */ |
||
| 47 | public function getPathParams(): string |
||
| 48 | { |
||
| 49 | return '/create/wallet'; |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @return array |
||
| 54 | */ |
||
| 55 | public function getHeaders(): array |
||
| 56 | { |
||
| 57 | return []; |
||
| 58 | } |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @return array |
||
| 62 | */ |
||
| 63 | public function getBody(): array |
||
| 68 | ]; |
||
| 69 | } |
||
| 70 | } |
||
| 71 |