mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-05-19 08:41:16 -04:00
42 lines
951 B
PHP
42 lines
951 B
PHP
<?php
|
|
|
|
/* Icinga DB Web | (c) 2021 Icinga GmbH | GPLv2 */
|
|
|
|
namespace Icinga\Module\Icingadb\Command\Object;
|
|
|
|
/**
|
|
* Schedule and propagate host downtime
|
|
*/
|
|
class PropagateHostDowntimeCommand extends ScheduleHostDowntimeCommand
|
|
{
|
|
/**
|
|
* Whether the downtime for child hosts are all set to be triggered by this' host downtime
|
|
*
|
|
* @var bool
|
|
*/
|
|
protected $triggered = false;
|
|
|
|
/**
|
|
* Set whether the downtime for child hosts are all set to be triggered by this' host downtime
|
|
*
|
|
* @param bool $triggered
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function setTriggered(bool $triggered = true): self
|
|
{
|
|
$this->triggered = $triggered;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get whether the downtime for child hosts are all set to be triggered by this' host downtime
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function getTriggered(): bool
|
|
{
|
|
return $this->triggered;
|
|
}
|
|
}
|