| Total Complexity | 3 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 8 | class PatternNotComplexEnoughException extends ShopwareHttpException |
||
| 9 | { |
||
| 10 | public const ERROR_CODE = 'PROMOTION__INDIVIDUAL_CODES_PATTERN_INSUFFICIENTLY_COMPLEX'; |
||
| 11 | |||
| 12 | public function __construct() |
||
| 13 | { |
||
| 14 | parent::__construct( |
||
| 15 | 'The amount of possible codes is too low for the current pattern. Make sure your pattern is sufficiently complex.' |
||
| 16 | ); |
||
| 17 | } |
||
| 18 | |||
| 19 | public function getErrorCode(): string |
||
| 20 | { |
||
| 21 | return self::ERROR_CODE; |
||
| 22 | } |
||
| 23 | |||
| 24 | public function getStatusCode(): int |
||
| 27 | } |
||
| 28 | } |
||
| 29 |