Token   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

5 Methods

Rating   Name   Duplication   Size   Complexity  
A refreshToken() 0 3 1
A scope() 0 3 1
A accessToken() 0 3 1
A tokenType() 0 3 1
A expiresIn() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace ExileeD\Inoreader\Objects;
6
7
class Token extends AbstractObject implements ObjectInterface
8
{
9
10 6
    public function accessToken(): string
11
    {
12 6
        return $this->data->access_token;
13
    }
14
15 6
    public function tokenType(): string
16
    {
17 6
        return $this->data->token_type;
18
    }
19
20
21 6
    public function expiresIn()
22
    {
23 6
        return $this->data->expires_in;
24
    }
25
26 6
    public function refreshToken(): string
27
    {
28 6
        return $this->data->refresh_token;
29
    }
30
31 6
    public function scope(): string
32
    {
33 6
        return $this->data->scope;
34
    }
35
}
36