| Total Complexity | 4 |
| Total Lines | 55 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 13 | class CrefoPayConfig extends AbstractBundleConfig |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var int |
||
| 17 | */ |
||
| 18 | protected const CREFO_PAY_ORDER_ID_LENGTH = 30; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var int |
||
| 22 | */ |
||
| 23 | protected const CREFO_PAY_USER_ID_MAX_LENGTH = 50; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var int |
||
| 27 | */ |
||
| 28 | protected const CREFO_PAY_BASKET_ITEM_ID_MAX_LENGTH = 20; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @api |
||
| 32 | * |
||
| 33 | * @return int |
||
| 34 | */ |
||
| 35 | public function getCrefoPayOrderIdLength(): int |
||
| 36 | { |
||
| 37 | return static::CREFO_PAY_ORDER_ID_LENGTH; |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @api |
||
| 42 | * |
||
| 43 | * @return int |
||
| 44 | */ |
||
| 45 | public function getCrefoPayUserIdMaxLength(): int |
||
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @api |
||
| 52 | * |
||
| 53 | * @return int |
||
| 54 | */ |
||
| 55 | public function getCrefoPayBasketItemIdMaxLength(): int |
||
| 56 | { |
||
| 57 | return static::CREFO_PAY_BASKET_ITEM_ID_MAX_LENGTH; |
||
| 58 | } |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @api |
||
| 62 | * |
||
| 63 | * @return bool |
||
| 64 | */ |
||
| 65 | public function getIsBusinessToBusiness(): bool |
||
| 68 | } |
||
| 69 | } |
||
| 70 |