service = $service; return $this; } /** * Get the service to set in downtime * * @return Service */ public function getService() { return $this->service; } /** * (non-PHPDoc) * @see \Icinga\Module\Monitoring\Command\IcingaCommand::getCommandString() For the method documentation. */ public function getCommandString() { return sprintf( '%s;%s;%s;%s', 'SCHEDULE_SVC_DOWNTIME', $this->service->getHostName(), $this->service->getName(), parent::getCommandString() ); } }