icingadb-web/library/Icingadb/Command/Object/ScheduleHostDowntimeCommand.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;
}
}