| 1 | <?php |
||
| 9 | class Form extends Callback |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | protected $shopOrderId; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var Money |
||
| 18 | */ |
||
| 19 | protected $amount; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * ISO 4217 currency code |
||
| 23 | * |
||
| 24 | * @var int |
||
| 25 | */ |
||
| 26 | protected $currency; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * ISO 639 alpha 2 language code |
||
| 30 | * |
||
| 31 | * @var string |
||
| 32 | */ |
||
| 33 | protected $language; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @var boolean |
||
| 37 | */ |
||
| 38 | protected $embeddedWindow; |
||
| 39 | |||
| 40 | 6 | public function init() |
|
| 51 | |||
| 52 | 15 | public static function initable(ServerRequestInterface $request): bool |
|
| 58 | |||
| 59 | /** |
||
| 60 | * @return string |
||
| 61 | */ |
||
| 62 | 3 | public function getShopOrderId(): string |
|
| 66 | |||
| 67 | /** |
||
| 68 | * @return Money |
||
| 69 | */ |
||
| 70 | 3 | public function getAmount(): Money |
|
| 74 | |||
| 75 | /** |
||
| 76 | * @return int |
||
| 77 | */ |
||
| 78 | 3 | public function getCurrency(): int |
|
| 82 | |||
| 83 | /** |
||
| 84 | * @return string |
||
| 85 | */ |
||
| 86 | 3 | public function getLanguage(): string |
|
| 90 | |||
| 91 | /** |
||
| 92 | * @return bool |
||
| 93 | */ |
||
| 94 | 3 | public function isEmbeddedWindow(): bool |
|
| 98 | } |
||
| 99 |
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.