mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 23:34:08 +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
|
abstract class WithCommentCommand extends ObjectCommand
|
||||||
{
|
{
|
||||||
/**
|
use CommandAuthor;
|
||||||
* Author of the comment
|
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
protected $author;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Comment
|
* Comment
|
||||||
@ -22,29 +17,6 @@ abstract class WithCommentCommand extends ObjectCommand
|
|||||||
*/
|
*/
|
||||||
protected $comment;
|
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
|
* Set the comment
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user