DeviceAssetInfoExportDevice   A
last analyzed

Complexity

Total Complexity 7

Size/Duplication

Total Lines 90
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 19
c 2
b 0
f 0
dl 0
loc 90
ccs 0
cts 22
cp 0
rs 10
wmc 7

7 Methods

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