public function setCommandObject(IcingaCommand $command) { $this->commandObject = $command; if ($this->connection === null) { $this->setConnection($command->getConnection()); } return $this; }
public function setCommandObject(IcingaCommand $object) { $this->commandObject = $object; $this->setDb($object->getConnection()); return $this; }