src/S3/S3Client.php
private function getSaveAsParameter()
    {
        return static function (callable $handler) {
            return function (Command $command, $request = null) use ($handler) {
                if ($command->getName() === 'GetObject' && isset($command['SaveAs'])) {
                    $command['@http']['sink'] = $command['SaveAs'];
                    unset($command['SaveAs']);
                }

                return $handler($command, $request);
            };
        };
    }
private function getSaveAsParameter()
    {
        return static function (callable $handler) {
            return function (Command $command, $request = null) use ($handler) {
                if ($command->getName() === 'GetObject' && isset($command['SaveAs'])) {
                    $command['@http']['sink'] = $command['SaveAs'];
                    unset($command['SaveAs']);
                }

                return $handler($command, $request);
            };
        };
    }
private function getSaveAsParameter ( ) { return static function ( callable $ handler ) { return function ( Command $ command , $ request = null ) use ( $ handler ) { if ( $ command -> getName ( ) === 'GetObject' && isset ( $ command [ 'SaveAs' ] ) ) { $ command [ '@http' ] [ 'sink' ] = $ command [ 'SaveAs' ] ; unset ( $ command [ 'SaveAs' ] ) ; } return $ handler ( $ command , $ request ) ; } ; } ; }
Provides a middleware that supports the `SaveAs` parameter.

@return \Closure
Provides a middleware that supports the SaveAs parameter .