title = $title; if ($screenshotProjectPath === "") { $screenshotProjectPath = JobDebugScreenshot::getImgFileProjectPath($jobId); } $this->screenShotProjectPath = $screenshotProjectPath; $this->setBody(new JobDebugNotificationBody($this->job, $body, $error, $this->screenShotProjectPath != null)); } public function getTitle(): Stringifiable { return new StringifiableSimpleText($this->title ?? "DEBUG Job {$this->job->name}"); } /** * @inheritDoc */ public function getImageProjectPath(): string|null { return $this->screenShotProjectPath; } /** * @inheritDoc */ public function getLinkURL(): string|null { return route('jobs.show', ['job' => $this->job->id]); } }