start = (int) $start; return $this; } /** * Get the time when the downtime should start * * @return int Unix timestamp */ public function getStart() { return $this->start; } /** * Set the time when the downtime should end * * @param int $end Unix timestamp * * @return $this */ public function setEnd($end) { $this->end = (int) $end; return $this; } /** * Get the time when the downtime should end * * @return int Unix timestamp */ public function getEnd() { return $this->end; } /** * Set whether it's a fixed or flexible downtime * * @param boolean $fixed * * @return $this */ public function setFixed($fixed = true) { $this->fixed = (bool) $fixed; return $this; } /** * Is the downtime fixed? * * @return boolean */ public function getFixed() { return $this->fixed; } /** * Set the ID of the downtime which triggers this downtime * * @param int $triggerId * * @return $this */ public function setTriggerId($triggerId) { $this->triggerId = (int) $triggerId; return $this; } /** * Get the ID of the downtime which triggers this downtime * * @return int|null */ public function getTriggerId() { return $this->triggerId; } /** * Set the duration in seconds the downtime must last if it's a flexible downtime * * @param int $duration * * @return $this */ public function setDuration($duration) { $this->duration = (int) $duration; return $this; } /** * Get the duration in seconds the downtime must last if it's a flexible downtime * * @return int|null */ public function getDuration() { return $this->duration; } /** * (non-PHPDoc) * @see \Icinga\Module\Monitoring\Command\Object\IcingaCommand::getName() For the method documentation. */ public function getName() { return 'ScheduleDowntime'; } }