author = $author; return $this; } /** * Get the author * * @return User */ 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; } /** * (non-PHPDoc) * @see \Icinga\Module\Monitoring\Command\IcingaCommand::getCommandString() For the method documentation. */ public function getCommandString() { return sprintf('%s;%s', $this->author->getUsername(), $this->comment); } }