Test Setup Failed
Push — master ( 1575f0...0c2558 )
by Dmitry
01:50
created

Credentials::buildCredentials()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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