From d9fbbca447c71ef84d2a40933a73dfcbf9a32908 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Tue, 9 Sep 2014 16:39:22 +0200 Subject: [PATCH] monitoring/commands: Move `AddCommentCommand' to `WithCommentCommand' `AddCommentCommand' will be the command for adding both host and service comments. refs #6593 --- .../Command/Common/WithCommentCommand.php | 71 +++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 modules/monitoring/library/Monitoring/Command/Common/WithCommentCommand.php diff --git a/modules/monitoring/library/Monitoring/Command/Common/WithCommentCommand.php b/modules/monitoring/library/Monitoring/Command/Common/WithCommentCommand.php new file mode 100644 index 000000000..c913e5bd3 --- /dev/null +++ b/modules/monitoring/library/Monitoring/Command/Common/WithCommentCommand.php @@ -0,0 +1,71 @@ +author = (string) $author; + return $this; + } + + /** + * Get the author + * + * @return string + */ + public function getAuthor() + { + return $this->author; + } + + /** + * 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; + } +}