* @license http://www.gnu.org/licenses/gpl-2.0.txt GPL, version 2 * @author Icinga Development Team */ // {{{ICINGA_LICENSE_HEADER}}} namespace Monitoring\Command; use \Icinga\Protocol\Commandpipe\Command; use \Icinga\Protocol\Commandpipe\Comment; abstract class MonitoringCommand implements Command { /** * The hostname for this command * * @var string */ protected $hostname; /** * The service description for this command * * @var string */ protected $service_description; /** * The comment associated to this command * * @var Comment */ protected $comment; /** * @see Command::setHost() */ public function setHost($hostname) { $this->hostname = $hostname; return $this; } /** * @see Command::setService() */ public function setService($service_description) { $this->service_description = $service_description; return $this; } /** * Set the comment for this command * * @param Comment $comment * @return self */ public function setComment(Comment $comment) { $this->comment = $comment; return $this; } }