Test Failed
Push — master ( 57b076...5497f6 )
by Raza
01:39
created

DropboxUploadCounter::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: raza
5
 * Date: 10/4/17
6
 * Time: 1:55 AM
7
 */
8
9
namespace Srmklive\Dropbox;
10
11
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)
33
    {
34
        $this->session_id = $session_id;
35
        $this->offset = $offset;
36
    }
37
}