BearerToken::getTokenType()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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