icingadb-web/library/Icingadb/Command/Object/AddCommentCommand.php
Johannes Meyer c6832d5740 Add monitoring's command implementation
Without all the Icinga 1.x burden and weird work-arounds.
2021-03-09 09:13:20 +01:00

42 lines
793 B
PHP

<?php
/* Icinga DB Web | (c) 2021 Icinga GmbH | GPLv2 */
namespace Icinga\Module\Icingadb\Command\Object;
/**
* Add a comment to a host or service
*/
class AddCommentCommand extends WithCommentCommand
{
/**
* Optional time when the acknowledgement should expire
*
* @var int
*/
protected $expireTime;
/**
* Set the time when the acknowledgement should expire
*
* @param int $expireTime
*
* @return $this
*/
public function setExpireTime($expireTime)
{
$this->expireTime = (int) $expireTime;
return $this;
}
/**
* Get the time when the acknowledgement should expire
*
* @return int
*/
public function getExpireTime()
{
return $this->expireTime;
}
}