_client = $client; $this->_source = $source; $this->_destination = $destination; } /** * @param int $start * @param int $end * * @return int * @throws Client\Exception\ClientException */ public function download(int $start, int $end):int { $object = $this->_client->getObject($this->_source, $this->_destination, $start, $end); return $object->getSize(); } }