BearerToken   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getAccessToken() 0 4 1
A getTokenType() 0 4 1
A getExpiresIn() 0 4 1
A __toString() 0 4 1
1
<?php
2
3
namespace Audiens\DoubleclickClient\entity;
4
5
class BearerToken
6
{
7
    public const TOKEN_PREFIX = 'Bearer';
8
9
    use HydratableTrait;
10
11
    /** @var string @required */
12
    protected $access_token;
13
14
    /** @var string @required */
15
    protected $token_type;
16
17
    /** @var string @required */
18
    protected $expires_in;
19
20
    public function getAccessToken()
21
    {
22
        return $this->access_token;
23
    }
24
25
    public function getTokenType()
26
    {
27
        return $this->token_type;
28
    }
29
30
    public function getExpiresIn()
31
    {
32
        return $this->expires_in;
33
    }
34
35
    public function __toString()
36
    {
37
        return self::TOKEN_PREFIX.' '.$this->access_token;
38
    }
39
}
40