src/S3/Transfer.php
public function promise()
    {
        // If the promise has been created, just return it.
        if (!$this->promise) {
            // Create an upload/download promise for the transfer.
            $this->promise = $this->sourceMetadata['scheme'] === 'file'
                ? $this->createUploadPromise()
                : $this->createDownloadPromise();
        }

        return $this->promise;
    }
public function promise()
    {
        // If the promise has been created, just return it.
        if (!$this->promise) {
            // Create an upload/download promise for the transfer.
            $this->promise = $this->sourceMetadata['scheme'] === 'file'
                ? $this->createUploadPromise()
                : $this->createDownloadPromise();
        }

        return $this->promise;
    }
public function promise ( ) { // If the promise has been created, just return it. if ( ! $ this -> promise ) { // Create an upload/download promise for the transfer. $ this -> promise = $ this -> sourceMetadata [ 'scheme' ] === 'file' ? $ this -> createUploadPromise ( ) : $ this -> createDownloadPromise ( ) ; } return $ this -> promise ; }
Transfers the files.
Transfers the files .