Config::getUsername()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: james
5
 * Date: 12/07/2018
6
 * Time: 15:22
7
 */
8
9
namespace CwsOps\LivePerson\Account;
10
11
/**
12
 * Class AccountConfig
13
 * @package CwsOps\LivePerson
14
 */
15
class Config
16
{
17
    /** @var string $accountId */
18
    private $accountId;
19
    /** @var string $consumerKey */
20
    private $consumerKey;
21
    /** @var string $consumerSecret */
22
    private $consumerSecret;
23
    /** @var string $token */
24
    private $token;
25
    /** @var string $tokenSecret */
26
    private $tokenSecret;
27
    /** @var string $username */
28
    private $username;
29
30
    /**
31
     * AccountConfig constructor.
32
     * @param string $accountId
33
     * @param string $consumerKey
34
     * @param string $consumerSecret
35
     * @param string $token
36
     * @param string $tokenSecret
37
     * @param string $username
38
     */
39
    public function __construct(string $accountId, string $consumerKey, string $consumerSecret, string $token, string $tokenSecret, string $username)
40
    {
41
        $this->accountId = $accountId;
42
        $this->consumerKey = $consumerKey;
43
        $this->consumerSecret = $consumerSecret;
44
        $this->token = $token;
45
        $this->tokenSecret = $tokenSecret;
46
        $this->username = $username;
47
    }
48
49
    /**
50
     * Gets the account Id
51
     *
52
     * @return string
53
     */
54
    public function getAccountId(): string
55
    {
56
        return $this->accountId;
57
    }
58
59
    /**
60
     * Gets the consumer key
61
     *
62
     * @return string
63
     */
64
    public function getConsumerKey(): string
65
    {
66
        return $this->consumerKey;
67
    }
68
69
    /**
70
     * Gets the consumer secret
71
     *
72
     * @return string
73
     */
74
    public function getConsumerSecret(): string
75
    {
76
        return $this->consumerSecret;
77
    }
78
79
    /**
80
     * Gets the token
81
     *
82
     * @return string
83
     */
84
    public function getToken(): string
85
    {
86
        return $this->token;
87
    }
88
89
    /**
90
     * Gets the token secret
91
     *
92
     * @return string
93
     */
94
    public function getTokenSecret(): string
95
    {
96
        return $this->tokenSecret;
97
    }
98
99
    /**
100
     * Gets the username
101
     * @return string
102
     */
103
    public function getUsername(): string
104
    {
105
        return $this->username;
106
    }
107
}