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