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