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

DropboxUploadCounter   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 26
rs 10
c 0
b 0
f 0

1 Method

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