| Total Complexity | 5 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | class Statuses { |
||
| 23 | /** |
||
| 24 | * Cancelled. |
||
| 25 | * |
||
| 26 | * @var string |
||
| 27 | */ |
||
| 28 | const CANCELLED = 'CANCELLED'; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Completed. |
||
| 32 | * |
||
| 33 | * @var string |
||
| 34 | */ |
||
| 35 | const COMPLETED = 'COMPLETED'; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Expired. |
||
| 39 | * |
||
| 40 | * @var string |
||
| 41 | */ |
||
| 42 | const EXPIRED = 'EXPIRED'; |
||
| 43 | |||
| 44 | /** |
||
| 45 | * In progress. |
||
| 46 | * |
||
| 47 | * @var string |
||
| 48 | */ |
||
| 49 | const IN_PROGRESS = 'IN_PROGRESS'; |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Transform an OmniKassa 2.0 status to Pronamic Pay status. |
||
| 53 | * |
||
| 54 | * @param string $status OmniKassa 2.0 status. |
||
| 55 | * @return string|null |
||
| 56 | */ |
||
| 57 | 5 | public static function transform( $status ) { |
|
| 72 |