Total Complexity | 6 |
Total Lines | 69 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | class Statuses { |
||
18 | /** |
||
19 | * Cancelled |
||
20 | * |
||
21 | * @var string |
||
22 | */ |
||
23 | const CANCELLED = 'cancelled'; |
||
24 | |||
25 | /** |
||
26 | * Completed |
||
27 | * |
||
28 | * @var string |
||
29 | */ |
||
30 | const COMPLETED = 'completed'; |
||
31 | |||
32 | /** |
||
33 | * Expired. |
||
34 | * |
||
35 | * @var string |
||
36 | */ |
||
37 | const EXPIRED = 'expired'; |
||
38 | |||
39 | /** |
||
40 | * Failed |
||
41 | * |
||
42 | * @var string |
||
43 | */ |
||
44 | const FAILED = 'failed'; |
||
45 | |||
46 | /** |
||
47 | * Pending |
||
48 | * |
||
49 | * @var string |
||
50 | */ |
||
51 | const PENDING = 'pending'; |
||
52 | |||
53 | /** |
||
54 | * Processing |
||
55 | * |
||
56 | * @var string |
||
57 | */ |
||
58 | const PROCESSING = 'processing'; |
||
59 | |||
60 | /** |
||
61 | * Transform a Nocks status to Pronamic Pay status. |
||
62 | * |
||
63 | * @param string $status |
||
64 | * |
||
65 | * @return string|null |
||
66 | */ |
||
67 | public static function transform( $status ) { |
||
89 |