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
Push — master ( 573435...aa8877 )
by Freek
01:14
created

UploadSessionCursor   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
namespace Spatie\Dropbox;
4
5
class UploadSessionCursor
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
    public function __construct(string $session_id, int $offset = 0)
22
    {
23
        $this->session_id = $session_id;
24
        $this->offset = $offset;
25
    }
26
}
27