| Total Complexity | 2 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | class Status extends AbstractEntity |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var string[] |
||
| 9 | */ |
||
| 10 | private static $codes = [ |
||
| 11 | '0' => 'Success', |
||
| 12 | '2000' => 'General error', |
||
| 13 | '15000' => 'Must change USERPASS', |
||
| 14 | '15500' => 'Signon invalid', |
||
| 15 | '15501' => 'Customer account already in use', |
||
| 16 | '15502' => 'USERPASS Lockout' |
||
| 17 | ]; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | public $code; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | public $severity; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var string |
||
| 31 | */ |
||
| 32 | public $message; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Get the associated code description |
||
| 36 | * |
||
| 37 | * @return string |
||
| 38 | */ |
||
| 39 | public function codeDesc() |
||
| 46 |