| Total Complexity | 2 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | class SelfServicePortalConfig extends SprykerSelfServicePortalConfig |
||
| 18 | { |
||
| 19 | protected const SHIPMENT_TYPE_IN_CENTER_SERVICE = 'in-center-service'; |
||
| 20 | |||
| 21 | public const SHIPMENT_TYPE_ON_SITE_SERVICE = 'on-site-service'; |
||
| 22 | |||
| 23 | public const SHIPMENT_TYPE_DELIVERY = 'delivery'; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Specification: |
||
| 27 | * - Returns the shipment type keys in the order they should be displayed. |
||
| 28 | * - Shipment types not in this list will be displayed after the ones in this list. |
||
| 29 | * |
||
| 30 | * @api |
||
| 31 | * |
||
| 32 | * @return list<string> |
||
| 33 | */ |
||
| 34 | public function getShipmentTypeSortOrder(): array |
||
| 35 | { |
||
| 36 | return [ |
||
|
|
|||
| 37 | static::SHIPMENT_TYPE_DELIVERY, |
||
| 38 | static::SHIPMENT_TYPE_IN_CENTER_SERVICE, |
||
| 39 | ]; |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @return list<string> |
||
| 44 | */ |
||
| 45 | public function getDeliveryLikeShipmentTypes(): array |
||
| 50 | ]; |
||
| 51 | } |
||
| 53 |