detail = $message; $this->title = self::TITLE; $this->type = self::TYPE; $this->status = StatusCodeInterface::STATUS_NOT_FOUND; $this->additional = $additional; } public static function fromId(string $id): self { return new self(sprintf('Domain with id "%s" could not be found', $id), ['id' => $id]); } public static function fromAuthority(string $authority): self { return new self( sprintf('Domain with authority "%s" could not be found', $authority), ['authority' => $authority], ); } }