Passed
Push — master ( ed94ae...15a67e )
by Ludwig
02:43
created

Token::setTokenType()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
/*
4
 * This file is part of datamolino client.
5
 *
6
 * (c) 2018 cwd.at GmbH <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
declare(strict_types=1);
13
14
namespace Cwd\Datamolino\Model;
15
16
class Token
17
{
18
    /** @var string */
19
    private $access_token;
20
    /** @var string */
21
    private $token_type;
22
    /** @var int */
23
    private $expires_in;
24
    /** @var string */
25
    private $refresh_token;
26
27
    /**
28
     * @return string
29
     */
30
    public function getAccessToken(): string
31
    {
32
        return $this->access_token;
33
    }
34
35
    /**
36
     * @param string $access_token
37
     *
38
     * @return Token
39
     */
40
    public function setAccessToken(string $access_token): Token
41
    {
42
        $this->access_token = $access_token;
43
44
        return $this;
45
    }
46
47
    /**
48
     * @return string
49
     */
50
    public function getTokenType(): string
51
    {
52
        return $this->token_type;
53
    }
54
55
    /**
56
     * @param string $token_type
57
     *
58
     * @return Token
59
     */
60
    public function setTokenType(string $token_type): Token
61
    {
62
        $this->token_type = $token_type;
63
64
        return $this;
65
    }
66
67
    /**
68
     * @return int
69
     */
70
    public function getExpiresIn(): int
71
    {
72
        return $this->expires_in;
73
    }
74
75
    /**
76
     * @param int $expires_in
77
     *
78
     * @return Token
79
     */
80
    public function setExpiresIn(int $expires_in): Token
81
    {
82
        $this->expires_in = $expires_in;
83
84
        return $this;
85
    }
86
87
    /**
88
     * @return string
89
     */
90
    public function getRefreshToken(): string
91
    {
92
        return $this->refresh_token;
93
    }
94
95
    /**
96
     * @param string $refreshToken
97
     *
98
     * @return Token
99
     */
100
    public function setRefreshToken(string $refreshToken): Token
101
    {
102
        $this->refresh_token = $refreshToken;
103
104
        return $this;
105
    }
106
}
107