| Total Complexity | 2 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | class CsrfException extends \Exception |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * CSRF token not found message |
||
| 25 | */ |
||
| 26 | const CSRF_TOKEN_NOT_FOUND = 'CSRF Token is missing'; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * CSRF token not matched message |
||
| 30 | */ |
||
| 31 | const CSRF_TOKEN_NOT_MATCHED = 'CSRF Token does not matched'; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @return \Quantum\Exceptions\CsrfException |
||
| 35 | */ |
||
| 36 | public static function tokenNotFound(): CsrfException |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @return \Quantum\Exceptions\CsrfException |
||
| 43 | */ |
||
| 44 | public static function tokenNotMatched(): CsrfException |
||
| 49 |