setReportInfo($reportUrl, $reportSign);
}
public function setReportInfo(?string $reportUrl = null, ?string $reportSign = null): void
{
$this->reportUrl = $reportUrl;
$this->reportSign = $reportSign;
}
public function handle()
{
echo $this->html(
$this->report()
? 'Information about this error has been sent to the devs.'
: 'Report what you were trying to a developer.'
);
return Handler::QUIT;
}
public function contentType(): string
{
return 'text/html';
}
public function html(string $text): string
{
return <<