WithCommentCommand: Utilize CommandAuthor

This commit is contained in:
Johannes Meyer 2020-05-14 13:51:21 +02:00
parent b4e7d80807
commit a2009913c9

View File

@ -8,12 +8,7 @@ namespace Icinga\Module\Monitoring\Command\Object;
*/
abstract class WithCommentCommand extends ObjectCommand
{
/**
* Author of the comment
*
* @var string
*/
protected $author;
use CommandAuthor;
/**
* Comment
@ -22,29 +17,6 @@ abstract class WithCommentCommand extends ObjectCommand
*/
protected $comment;
/**
* Set the author
*
* @param string $author
*
* @return $this
*/
public function setAuthor($author)
{
$this->author = (string) $author;
return $this;
}
/**
* Get the author
*
* @return string
*/
public function getAuthor()
{
return $this->author;
}
/**
* Set the comment
*