| Total Complexity | 5 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | class ProductCategories { |
||
| 23 | /** |
||
| 24 | * Product category 'PHYSICAL'. |
||
| 25 | * |
||
| 26 | * @var string |
||
| 27 | */ |
||
| 28 | const PHYSICAL = 'PHYSICAL'; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Product category 'DIGITAL'. |
||
| 32 | * |
||
| 33 | * @var string |
||
| 34 | */ |
||
| 35 | const DIGITAL = 'DIGITAL'; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Transform Pronamic payment line type to OmniKassa 2.0 product category. |
||
| 39 | * |
||
| 40 | * @param string $type Pronamic payment line type. |
||
| 41 | * |
||
| 42 | * @return string |
||
| 43 | */ |
||
| 44 | public static function transform( $type ) { |
||
| 57 |