mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-04-14 05:16:35 -04:00
44 lines
698 B
PHP
44 lines
698 B
PHP
<?php
|
|
|
|
/* Icinga DB Web | (c) 2021 Icinga GmbH | GPLv2 */
|
|
|
|
namespace Icinga\Module\Icingadb\Command\Object;
|
|
|
|
/**
|
|
* Base class for commands adding comments
|
|
*/
|
|
abstract class WithCommentCommand extends ObjectCommand
|
|
{
|
|
use CommandAuthor;
|
|
|
|
/**
|
|
* Comment
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $comment;
|
|
|
|
/**
|
|
* Set the comment
|
|
*
|
|
* @param string $comment
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function setComment($comment)
|
|
{
|
|
$this->comment = (string) $comment;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get the comment
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getComment()
|
|
{
|
|
return $this->comment;
|
|
}
|
|
}
|