| Conditions | 8 |
| Paths | 8 |
| Total Lines | 25 |
| Code Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 73 | public static function transform( $status ) { |
||
| 74 | switch ( $status ) { |
||
| 75 | case self::COMPLETED: |
||
| 76 | return Core_Statuses::SUCCESS; |
||
| 77 | |||
| 78 | case self::INITIALIZED: |
||
| 79 | return Core_Statuses::OPEN; |
||
| 80 | |||
| 81 | case self::UNCLEARED: |
||
| 82 | return Core_Statuses::OPEN; |
||
| 83 | |||
| 84 | case self::VOID: |
||
| 85 | return Core_Statuses::CANCELLED; |
||
| 86 | |||
| 87 | case self::DECLINED: |
||
| 88 | return Core_Statuses::FAILURE; |
||
| 89 | |||
| 90 | case self::REFUNDED: |
||
| 91 | return Core_Statuses::CANCELLED; |
||
| 92 | |||
| 93 | case self::EXPIRED: |
||
| 94 | return Core_Statuses::EXPIRED; |
||
| 95 | |||
| 96 | default: |
||
| 97 | return null; |
||
| 98 | } |
||
| 101 |