GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Pull Request — master (#21)
by Elias
02:10
created

UploadSessionCursor::__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: esoares
5
 * Date: 18/07/17
6
 * Time: 16:32
7
 */
8
9
namespace Spatie\Dropbox;
10
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)
34
    {
35
        $this->session_id = $session_id;
36
        $this->offset = $offset;
37
    }
38
}