Credentials   A
last analyzed

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
 * 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