Credentials::getToken()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
ccs 2
cts 2
cp 1
cc 1
nc 1
nop 0
crap 1
1
<?php
2
/**
3
 * @author Dmitry Gladyshev <[email protected]>
4
 * @date 16/08/2016 19:48
5
 */
6
7
namespace Yandex\Direct;
8
9
/**
10
 * Class Credentials
11
 * @package Yandex\Direct\Credentials
12
 */
13
final class Credentials implements CredentialsInterface
14
{
15
    /**
16
     * @var string
17
     */
18
    protected $token;
19
20
    /**
21
     * @var string
22
     */
23
    protected $masterToken;
24
25
    /**
26
     * @var string
27
     */
28
    protected $login;
29
30
    /**
31
     * Credentials constructor.
32
     *
33
     * @param string $login
34
     * @param string $token
35
     * @param string $masterToken
36
     */
37 54
    public function __construct($login = '', $token = '', $masterToken = '')
38
    {
39 54
        $this->login = $login;
40 54
        $this->token = $token;
41 54
        $this->masterToken = $masterToken;
42 54
    }
43
44
    /**
45
     * @return string
46
     */
47 1
    public function getMasterToken()
48
    {
49 1
        return $this->masterToken;
50
    }
51
52
    /**
53
     * @return string
54
     */
55 1
    public function getToken()
56
    {
57 1
        return $this->token;
58
    }
59
60
    /**
61
     * @return string
62
     */
63 1
    public function getLogin()
64
    {
65 1
        return $this->login;
66
    }
67
}
68