| Total Complexity | 2 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | class SessionException extends \Exception |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * Session start error message |
||
| 25 | */ |
||
| 26 | const SESSION_NOT_STARTED = 'Can not start the session'; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Session destroy error message |
||
| 30 | */ |
||
| 31 | const SESSION_NOT_DESTROYED = 'Can not destroy the session'; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @return \Quantum\Exceptions\SessionException |
||
| 35 | */ |
||
| 36 | public static function sessionNotStarted(): SessionException |
||
| 37 | { |
||
| 38 | return new static(self::SESSION_NOT_STARTED, E_WARNING); |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @return \Quantum\Exceptions\SessionException |
||
| 43 | */ |
||
| 44 | public static function sessionNotDestroyed(): SessionException |
||
| 47 | } |
||
| 48 | } |
||
| 49 |