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

50 lines
1.0 KiB
PHP
Raw Normal View History

<?php
/* Icinga Web 2 | (c) 2013-2015 Icinga Development Team | GPLv2+ */
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;
}
}