| Total Complexity | 7 |
| Total Lines | 70 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | class Statuses { |
||
| 26 | /** |
||
| 27 | * Completed |
||
| 28 | * |
||
| 29 | * @var string |
||
| 30 | */ |
||
| 31 | const COMPLETED = 'completed'; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Error |
||
| 35 | * |
||
| 36 | * @since 1.0.5 |
||
| 37 | * @var string |
||
| 38 | */ |
||
| 39 | const ERROR = 'error'; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Pending |
||
| 43 | * |
||
| 44 | * @var string |
||
| 45 | */ |
||
| 46 | const PENDING = 'pending'; |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Processing |
||
| 50 | * |
||
| 51 | * @var string |
||
| 52 | */ |
||
| 53 | const PROCESSING = 'processing'; |
||
| 54 | |||
| 55 | // @todo verify cancelled status |
||
| 56 | /** |
||
| 57 | * Cancelled |
||
| 58 | * |
||
| 59 | * @var string |
||
| 60 | */ |
||
| 61 | const CANCELLED = 'cancelled'; |
||
| 62 | |||
| 63 | /** |
||
| 64 | * Success |
||
| 65 | * |
||
| 66 | * @var string |
||
| 67 | */ |
||
| 68 | const SUCCESS = 'Success'; |
||
| 69 | |||
| 70 | /** |
||
| 71 | * Transform an ING Kassa Compleet status to a global status |
||
| 72 | * |
||
| 73 | * @param string $status ING Kassa Compleet status to transform. |
||
| 74 | * |
||
| 75 | * @return string|null |
||
| 76 | */ |
||
| 77 | public static function transform( $status ) { |
||
| 98 |