domain = $domain; return $this; } /** * Returns the set domain for this certificate event. * * @return null|Document */ public function getDomain(): ?Document { return $this->domain; } /** * Set if the certificate needs to be validated. * * @param bool $skipRenewCheck * @return self */ public function setSkipRenewCheck(bool $skipRenewCheck): self { $this->skipRenewCheck = $skipRenewCheck; return $this; } /** * Return if the certificate needs be validated. * * @return bool */ public function getSkipRenewCheck(): bool { return $this->skipRenewCheck; } /** * Executes the event and sends it to the certificates worker. * * @return string|bool * @throws \InvalidArgumentException */ public function trigger(): string|bool { $client = new Client($this->queue, $this->connection); return $client->enqueue([ 'project' => $this->project, 'domain' => $this->domain, 'skipRenewCheck' => $this->skipRenewCheck ]); } }