mirror of
				https://github.com/Icinga/icingaweb2.git
				synced 2025-11-04 05:05:01 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			51 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			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;
 | 
						|
    }
 | 
						|
}
 |