checkTime = (int) $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() { return $this->checkTime; } /** * Set whether the check is forced * * @param bool $forced * * @return $this */ public function setForced($forced = true) { $this->forced = (bool) $forced; return $this; } /** * Get whether the check is forced * * @return bool */ public function getForced() { return $this->forced; } /** * {@inheritdoc} */ public function getName() { return 'ScheduleCheck'; } }