checkTime = $checkTime; return $this; } /** * Get the time when the next check of a host or service is to be scheduled * * @return int Unix timestamp */ public function getCheckTime(): int { if ($this->checkTime === null) { throw new \LogicException( 'You are accessing an unset property. Please make sure to set it beforehand.' ); } return $this->checkTime; } /** * Set whether the check is forced * * @param bool $forced * * @return $this */ public function setForced(bool $forced = true): self { $this->forced = $forced; return $this; } /** * Get whether the check is forced * * @return bool */ public function getForced(): bool { return $this->forced; } }