currentPartNo === 0) { $this->currentPartNo = 1; } else { $this->currentPartNo++; } $nextRequestArgs = $this->downloadRequestArgs; $nextRequestArgs['PartNumber'] = $this->currentPartNo; if ($this->config['response_checksum_validation'] === 'when_supported') { $nextRequestArgs['ChecksumMode'] = 'ENABLED'; } if (!empty($this->eTag)) { $nextRequestArgs['IfMatch'] = $this->eTag; } return $this->s3Client->getCommand( self::GET_OBJECT_COMMAND, $nextRequestArgs ); } /** * @inheritDoc * * @param Result $result * * @return void */ protected function computeObjectDimensions(ResultInterface $result): void { if (!empty($result['PartsCount'])) { $this->objectPartsCount = $result['PartsCount']; } else { $this->objectPartsCount = 1; } $this->objectSizeInBytes = $this->computeObjectSizeFromContentRange( $result['ContentRange'] ?? "" ); } }