path = $path; $this->localBasePath = $localBasePath; $this->remoteBasePath = $remoteBasePath; } /** @return string */ public function getLocalPath() { return $this->localBasePath === '' ? $this->path : "{$this->localBasePath}/{$this->path}"; } /** @return string */ public function getRemotePath() { if ( $this->remoteBasePath === '' ) { // No base path configured return $this->path; } if ( $this->remoteBasePath === '/' ) { // In document root // Don't insert another slash (T284391). return $this->remoteBasePath . $this->path; } return "{$this->remoteBasePath}/{$this->path}"; } /** @return string */ public function getLocalBasePath() { return $this->localBasePath; } /** @return string */ public function getRemoteBasePath() { return $this->remoteBasePath; } /** @return string */ public function getPath() { return $this->path; } }