title = $title; $this->screenShotProjectPath = $screenshotProjectPath; $this->setBody(new JobDebugNotificationBody($this->job, $this->title, $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]); } }