From a2009913c919055d1828e1a275a4984c16727e10 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 14 May 2020 13:51:21 +0200 Subject: [PATCH] WithCommentCommand: Utilize `CommandAuthor` --- .../Command/Object/WithCommentCommand.php | 30 +------------------ 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/modules/monitoring/library/Monitoring/Command/Object/WithCommentCommand.php b/modules/monitoring/library/Monitoring/Command/Object/WithCommentCommand.php index 511b769e6..aa2e43994 100644 --- a/modules/monitoring/library/Monitoring/Command/Object/WithCommentCommand.php +++ b/modules/monitoring/library/Monitoring/Command/Object/WithCommentCommand.php @@ -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 *