Posnet   A
last analyzed

Complexity

Total Complexity 8

Size/Duplication

Total Lines 94
Duplicated Lines 0 %

Importance

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

8 Methods

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