Passed
Push — master ( cce82b...431dd9 )
by Raza
02:24
created

DropboxUploadCounter::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 4
ccs 3
cts 3
cp 1
crap 1
rs 10
1
<?php
2
3
namespace Srmklive\Dropbox;
4
5
class DropboxUploadCounter
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
    /**
22
     * @param string $session_id
23
     * @param int    $offset
24
     */
25 6
    public function __construct($session_id, $offset = 0)
26
    {
27 6
        $this->session_id = $session_id;
28 6
        $this->offset = $offset;
29 6
    }
30
}
31