DropboxUploadCounter   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 5
c 2
b 0
f 0
dl 0
loc 24
ccs 3
cts 3
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
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