issue = $issue; } public static function descriptions(): array { return [ static::ISSUE_ID => __('emailTemplate.variable.issueId'), static::ISSUE_IDENTIFICATION => __('emailTemplate.variable.issue.issueIdentification'), static::ISSUE_URL => __('emailTemplate.variable.issue.issuePublishedUrl'), ]; } public function values(string $locale): array { return [ static::ISSUE_ID => $this->issue->getId(), static::ISSUE_IDENTIFICATION => htmlspecialchars($this->issue->getIssueIdentification()), static::ISSUE_URL => $this->getIssueUrl(), ]; } protected function getIssueUrl(): string { return Application::get()->getDispatcher()->url( Application::get()->getRequest(), Application::ROUTE_PAGE, $this->getContext()->getPath(), 'issue', 'view', $this->issue->getBestIssueId() ); } }