| Total Complexity | 3 | 
| Total Lines | 34 | 
| Duplicated Lines | 0 % | 
| Changes | 2 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 16 | class HeadersSentException extends LogicException implements SevereExceptionInterface, LocatableExceptionInterface | ||
| 17 | { | ||
| 18 | use HasSeverity; | ||
| 19 | |||
| 20 | /** | ||
| 21 | * Exception thrown when headers have already been sent when attempting to emit HTTP content. | ||
| 22 | * | ||
| 23 | * @param int $code The Exception code. | ||
| 24 | * @param \Throwable $previous The previous throwable used for the exception chaining. | ||
| 25 | */ | ||
| 26 | |||
| 27 | public function __construct(int $code = 0, Throwable $previous = null) | ||
| 28 | 	{ | ||
| 29 | $message = 'Headers already sent.'; | ||
| 30 | |||
| 31 | parent::__construct($message, $code, $previous); | ||
| 32 | } | ||
| 33 | |||
| 34 | /** | ||
| 35 | * If required, set the file and line where the Exception was thrown. | ||
| 36 | * | ||
| 37 | * @param string $file | ||
| 38 | * @param int $line | ||
| 39 | * | ||
| 40 | * @return $this | ||
| 41 | */ | ||
| 42 | public function onFileLine(string $file, int $line): LocatableExceptionInterface | ||
| 50 | } | ||
| 51 | } | ||
| 52 |