/** * @return null|Host */ public function getRemoteHost() { $sourceHost = $this->source->getHost(); $destinationHost = $this->destination->getHost(); if (empty($sourceHost)) { if (empty($destinationHost)) { return NULL; } else { return $destinationHost; } } return $sourceHost; }
/** * Test if the file located on a remote server * @return string */ public function isRemote() { return $this->dir->isRemote(); }