mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-05-19 08:41:16 -04:00
42 lines
963 B
PHP
42 lines
963 B
PHP
<?php
|
|
|
|
/* Icinga DB Web | (c) 2021 Icinga GmbH | GPLv2 */
|
|
|
|
namespace Icinga\Module\Icingadb\Command\Object;
|
|
|
|
/**
|
|
* Schedule a host downtime
|
|
*/
|
|
class ScheduleHostDowntimeCommand extends ScheduleServiceDowntimeCommand
|
|
{
|
|
/**
|
|
* Whether to schedule a downtime for all services associated with a particular host
|
|
*
|
|
* @var bool
|
|
*/
|
|
protected $forAllServices = false;
|
|
|
|
/**
|
|
* Set whether to schedule a downtime for all services associated with a particular host
|
|
*
|
|
* @param bool $forAllServices
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function setForAllServices(bool $forAllServices = true): self
|
|
{
|
|
$this->forAllServices = $forAllServices;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get whether to schedule a downtime for all services associated with a particular host
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function getForAllServices(): bool
|
|
{
|
|
return $this->forAllServices;
|
|
}
|
|
}
|