| 1 | <?php |
||
| 12 | class DropboxUploadCounter |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * The upload session ID (returned by upload_session/start). |
||
| 16 | * |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | public $session_id; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * The amount of data that has been uploaded so far. We use this to make sure upload data isn't lost or duplicated in the event of a network error. |
||
| 23 | * |
||
| 24 | * @var int |
||
| 25 | */ |
||
| 26 | public $offset; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param string $session_id |
||
| 30 | * @param int $offset |
||
| 31 | */ |
||
| 32 | public function __construct($session_id, $offset = 0) |
||
| 37 | } |