| Conditions | 8 |
| Paths | 8 |
| Total Lines | 17 |
| Code Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 71 | * @param string $status |
||
| 72 | */ |
||
| 73 | public static function transform( $status ) { |
||
| 74 | switch ( $status ) { |
||
| 75 | case self::PENDING: |
||
| 76 | case self::OPEN: |
||
| 77 | return Core_Statuses::OPEN; |
||
| 78 | |||
| 79 | case self::CANCELLED: |
||
| 80 | return Core_Statuses::CANCELLED; |
||
| 81 | |||
| 82 | case self::PAID_OUT: |
||
| 83 | return Core_Statuses::SUCCESS; |
||
| 84 | |||
| 85 | case self::ACTIVE: |
||
| 86 | return Core_Statuses::ACTIVE; |
||
| 87 | |||
| 88 | case self::PAID: |
||
| 99 |