destUri = $destUrl; } else { $this->destUri = new Uri( $destUrl ); } } public function getOutputFile( $boxedName ) { $path = $this->destUri->getPath() . basename( $boxedName ); $instance = new OutputFileToUrl( $this->destUri->withPath( $path ) ); $this->files[$boxedName] = $instance; return $instance; } public function getClientData() { return parent::getClientData() + [ 'type' => 'url', 'url' => (string)$this->destUri, ]; } }