GuzzleClientConfig::setPassword()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 5
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AlexCk\MailchimpBundle\Service\GuzzleClient;
6
7
class GuzzleClientConfig
8
{
9
    /**
10
     * @var string
11
     */
12
    private $username;
13
14
    /**
15
     * @var string
16
     */
17
    private $password;
18
19
    /**
20
     * @var string
21
     */
22
    private $baseUri;
23
24
    /**
25
     * @var string
26
     */
27
    private $version;
28
29
    /**
30
     * @var string
31
     */
32
    private $accept;
33
34
    /**
35
     * @var string
36
     */
37
    private $contentType;
38
39
    /**
40
     * GuzzleClientConfig constructor.
41
     */
42
    public function __construct()
43
    {
44
        $this->setContentType('application/json');
45
    }
46
47
    public function getUsername(): string
48
    {
49
        return $this->username;
50
    }
51
52
    public function setUsername(string $username): GuzzleClientConfig
53
    {
54
        $this->username = $username;
55
56
        return $this;
57
    }
58
59
    public function getPassword(): string
60
    {
61
        return $this->password;
62
    }
63
64
    public function setPassword(string $password): GuzzleClientConfig
65
    {
66
        $this->password = $password;
67
68
        return $this;
69
    }
70
71
    public function getBaseUri(): string
72
    {
73
        return $this->baseUri;
74
    }
75
76
    public function setBaseUri(string $baseUri): GuzzleClientConfig
77
    {
78
        $this->baseUri = $baseUri;
79
80
        return $this;
81
    }
82
83
    public function getVersion(): string
84
    {
85
        return $this->version;
86
    }
87
88
    public function setVersion(string $version): GuzzleClientConfig
89
    {
90
        $this->version = $version;
91
92
        return $this;
93
    }
94
95
    public function getAccept(): string
96
    {
97
        return $this->accept;
98
    }
99
100
    public function setAccept(string $accept): GuzzleClientConfig
101
    {
102
        $this->accept = $accept;
103
104
        return $this;
105
    }
106
107
    public function getContentType(): string
108
    {
109
        return $this->contentType;
110
    }
111
112
    public function setContentType(string $contentType): GuzzleClientConfig
113
    {
114
        $this->contentType = $contentType;
115
116
        return $this;
117
    }
118
}
119