mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-05-28 04:36:06 -04:00
Add SPDX license headers and mark source files as GPL-3.0-or-later to preserve the option to relicense under later GPL versions.
43 lines
857 B
PHP
43 lines
857 B
PHP
<?php
|
|
|
|
// SPDX-FileCopyrightText: 2021 Icinga GmbH <https://icinga.com>
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
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(int $expireTime): self
|
|
{
|
|
$this->expireTime = $expireTime;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get the time when the acknowledgement should expire
|
|
*
|
|
* @return ?int
|
|
*/
|
|
public function getExpireTime()
|
|
{
|
|
return $this->expireTime;
|
|
}
|
|
}
|