mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-24 22:34:24 +02:00
WithCommentCommand: Utilize CommandAuthor
This commit is contained in:
parent
b4e7d80807
commit
a2009913c9
@ -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
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user