| 1 | <?php |
||
| 5 | class UploadSessionCursor |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * The upload session ID (returned by upload_session/start). |
||
| 9 | * |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | public $session_id; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * 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. |
||
| 16 | * |
||
| 17 | * @var int |
||
| 18 | */ |
||
| 19 | public $offset; |
||
| 20 | |||
| 21 | public function __construct(string $session_id, int $offset = 0) |
||
| 26 | } |
||
| 27 |