| Total Complexity | 1 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class WrongStatusException extends AbstractException |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * ERROR_MESSAGE |
||
| 14 | */ |
||
| 15 | const ERROR_MESSAGE = 'Order status is not authorized. Current status: %s'; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * ERROR_CODE |
||
| 19 | */ |
||
| 20 | const ERROR_CODE = 403; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * WrongStatusException constructor. |
||
| 24 | * |
||
| 25 | * @param $currentStatus |
||
| 26 | */ |
||
| 27 | public function __construct($currentStatus) |
||
| 35 |