Completed
Push — master ( 1fb200...e342d7 )
by Dmitry
02:52
created

Credentials   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 55
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 55
ccs 11
cts 11
cp 1
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getMasterToken() 0 4 1
A getToken() 0 4 1
A getLogin() 0 4 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
/**
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 2
    public function __construct($login = '', $token = '', $masterToken = '')
39
    {
40 2
        $this->login = $login;
41 2
        $this->token = $token;
42 2
        $this->masterToken = $masterToken;
43 2
    }
44
45
    /**
46
     * @return string
47
     */
48 1
    public function getMasterToken()
49
    {
50 1
        return $this->masterToken;
51
    }
52
53
    /**
54
     * @return string
55
     */
56 1
    public function getToken()
57
    {
58 1
        return $this->token;
59
    }
60
61
    /**
62
     * @return string
63
     */
64 1
    public function getLogin()
65
    {
66 1
        return $this->login;
67
    }
68
}