icingaweb2/modules/monitoring/library/Monitoring/Command/Object/DeleteDowntimeCommand.php

51 lines
1.0 KiB
PHP

<?php
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}
namespace Icinga\Module\Monitoring\Command\Object;
/**
* Delete a host or service downtime
*/
class DeleteDowntimeCommand extends ObjectCommand
{
/**
* (non-PHPDoc)
* @see \Icinga\Module\Monitoring\Command\Object\ObjectCommand::$allowedObjects For the property documentation.
*/
protected $allowedObjects = array(
self::TYPE_HOST,
self::TYPE_SERVICE
);
/**
* ID of the downtime that is to be deleted
*
* @var int
*/
protected $downtimeId;
/**
* Set the ID of the downtime that is to be deleted
*
* @param int $downtimeId
*
* @return $this
*/
public function setDowntimeId($downtimeId)
{
$this->downtimeId = (int) $downtimeId;
return $this;
}
/**
* Get the ID of the downtime that is to be deleted
*
* @return int
*/
public function getDowntimeId()
{
return $this->downtimeId;
}
}