/** * @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; }
/** * Get the host where this file is located * @return Host */ public function getHost() { return $this->dir->getHost(); }