protected function getClient() {
        if ($this->client === null) {
            $params = [
                'credentials' => [
                    'key' => $this->params['key'],
                    'secret' => $this->params['secret'],
                ],
                'version' => $this->params['version'],
            ];

            if ($this->params['region']) {
                $params['region'] = $this->params['region'];
            }

            $this->client = new S3Client($params);
        }

        return $this->client;
    }
protected function getClient() {
        if ($this->client === null) {
            $params = [
                'credentials' => [
                    'key' => $this->params['key'],
                    'secret' => $this->params['secret'],
                ],
                'version' => $this->params['version'],
            ];

            if ($this->params['region']) {
                $params['region'] = $this->params['region'];
            }

            $this->client = new S3Client($params);
        }

        return $this->client;
    }
protected function getClient ( ) { if ( $ this -> client === null ) { $ params = [ 'credentials' => [ 'key' => $ this -> params [ 'key' ] , 'secret' => $ this -> params [ 'secret' ] , ] , 'version' => $ this -> params [ 'version' ] , ] ; if ( $ this -> params [ 'region' ] ) { $ params [ 'region' ] = $ this -> params [ 'region' ] ; } $ this -> client = new S3Client ( $ params ) ; } return $ this -> client ; }
Get the S3Client instance

@return S3Client
Get the S3Client instance