| Total Complexity | 3 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | class SessionException extends Exception |
||
| 27 | { |
||
| 28 | /** |
||
| 29 | * @return self |
||
| 30 | */ |
||
| 31 | public static function headersAlreadySent(): self |
||
| 32 | { |
||
| 33 | return new self( |
||
| 34 | 'Headers already sent. You can\'t set the session id anymore' |
||
| 35 | ); |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @return self |
||
| 40 | */ |
||
| 41 | public static function couldNotStart(): self |
||
| 45 | ); |
||
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @return self |
||
| 50 | */ |
||
| 51 | public static function alreadyStarted(): self |
||
| 55 | ); |
||
| 56 | } |
||
| 58 |