Exemplo n.º 1
0
 /**
  * @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;
 }
Exemplo n.º 2
0
 /**
  * Test if the file located on a remote server
  * @return string
  */
 public function isRemote()
 {
     return $this->dir->isRemote();
 }