NestPay   A
last analyzed

Complexity

Total Complexity 8

Size/Duplication

Total Lines 97
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 8
eloc 17
dl 0
loc 97
rs 10
c 0
b 0
f 0

8 Methods

Rating   Name   Duplication   Size   Complexity  
A setUsername() 0 4 1
A setMode() 0 4 1
A setClientId() 0 4 1
A getUsername() 0 3 1
A setPassword() 0 4 1
A getPassword() 0 3 1
A getMode() 0 3 1
A getClientId() 0 3 1
1
<?php
2
3
namespace Paranoia\Configuration;
4
5
class NestPay extends AbstractConfiguration
6
{
7
8
    /**
9
     * @var string
10
     */
11
    private $clientId;
12
13
    /**
14
     * @var string
15
     */
16
    private $username;
17
18
    /**
19
     * @var string
20
     */
21
    private $password;
22
23
    /**
24
     * @var string
25
     */
26
    private $mode;
27
28
    /**
29
     * @param string $clientId
30
     *
31
     * @return $this
32
     */
33
    public function setClientId($clientId)
34
    {
35
        $this->clientId = $clientId;
36
        return $this;
37
    }
38
39
    /**
40
     * @return string
41
     */
42
    public function getClientId()
43
    {
44
        return $this->clientId;
45
    }
46
47
    /**
48
     * @param string $mode
49
     *
50
     * @return $this
51
     */
52
    public function setMode($mode)
53
    {
54
        $this->mode = $mode;
55
        return $this;
56
    }
57
58
    /**
59
     * @return string
60
     */
61
    public function getMode()
62
    {
63
        return $this->mode;
64
    }
65
66
    /**
67
     * @param string $password
68
     *
69
     * @return $this
70
     */
71
    public function setPassword($password)
72
    {
73
        $this->password = $password;
74
        return $this;
75
    }
76
77
    /**
78
     * @return string
79
     */
80
    public function getPassword()
81
    {
82
        return $this->password;
83
    }
84
85
    /**
86
     * @param string $username
87
     *
88
     * @return $this
89
     */
90
    public function setUsername($username)
91
    {
92
        $this->username = $username;
93
        return $this;
94
    }
95
96
    /**
97
     * @return string
98
     */
99
    public function getUsername()
100
    {
101
        return $this->username;
102
    }
103
}
104