withSettings()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 2
b 0
f 0
nc 1
nop 1
dl 0
loc 6
ccs 0
cts 4
cp 0
crap 2
rs 10
1
<?php
2
3
namespace Spinen\Ncentral\Type;
4
5
6
use Phpro\SoapClient\Type\RequestInterface;
7
8
class DeviceAssetInfoExportDeviceWithSettings 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
     * @var \Spinen\Ncentral\Type\EiKeyValues
28
     */
29
    private $settings;
30
31
    /**
32
     * Constructor
33
     *
34
     * @var string $version
35
     * @var string $username
36
     * @var string $password
37
     * @var \Spinen\Ncentral\Type\EiKeyValues $settings
38
     */
39
    public function __construct($version, $username, $password, $settings)
40
    {
41
        $this->version = $version;
42
        $this->username = $username;
43
        $this->password = $password;
44
        $this->settings = $settings;
45
    }
46
47
    /**
48
     * @return string
49
     */
50
    public function getVersion()
51
    {
52
        return $this->version;
53
    }
54
55
    /**
56
     * @param string $version
57
     * @return DeviceAssetInfoExportDeviceWithSettings
58
     */
59
    public function withVersion($version)
60
    {
61
        $new = clone $this;
62
        $new->version = $version;
63
64
        return $new;
65
    }
66
67
    /**
68
     * @return string
69
     */
70
    public function getUsername()
71
    {
72
        return $this->username;
73
    }
74
75
    /**
76
     * @param string $username
77
     * @return DeviceAssetInfoExportDeviceWithSettings
78
     */
79
    public function withUsername($username)
80
    {
81
        $new = clone $this;
82
        $new->username = $username;
83
84
        return $new;
85
    }
86
87
    /**
88
     * @return string
89
     */
90
    public function getPassword()
91
    {
92
        return $this->password;
93
    }
94
95
    /**
96
     * @param string $password
97
     * @return DeviceAssetInfoExportDeviceWithSettings
98
     */
99
    public function withPassword($password)
100
    {
101
        $new = clone $this;
102
        $new->password = $password;
103
104
        return $new;
105
    }
106
107
    /**
108
     * @return \Spinen\Ncentral\Type\EiKeyValues
109
     */
110
    public function getSettings()
111
    {
112
        return $this->settings;
113
    }
114
115
    /**
116
     * @param \Spinen\Ncentral\Type\EiKeyValues $settings
117
     * @return DeviceAssetInfoExportDeviceWithSettings
118
     */
119
    public function withSettings($settings)
120
    {
121
        $new = clone $this;
122
        $new->settings = $settings;
123
124
        return $new;
125
    }
126
127
128
}
129
130