VersionInfoGet   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 7
c 2
b 0
f 0
dl 0
loc 36
ccs 0
cts 8
cp 0
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getCredentials() 0 3 1
A withCredentials() 0 6 1
1
<?php
2
3
namespace Spinen\Ncentral\Type;
4
5
6
use Phpro\SoapClient\Type\RequestInterface;
7
8
class VersionInfoGet implements RequestInterface
9
{
10
11
    /**
12
     * @var \Spinen\Ncentral\Type\EiCredentials
13
     */
14
    private $credentials;
15
16
    /**
17
     * Constructor
18
     *
19
     * @var \Spinen\Ncentral\Type\EiCredentials $credentials
20
     */
21
    public function __construct($credentials)
22
    {
23
        $this->credentials = $credentials;
24
    }
25
26
    /**
27
     * @return \Spinen\Ncentral\Type\EiCredentials
28
     */
29
    public function getCredentials()
30
    {
31
        return $this->credentials;
32
    }
33
34
    /**
35
     * @param \Spinen\Ncentral\Type\EiCredentials $credentials
36
     * @return VersionInfoGet
37
     */
38
    public function withCredentials($credentials)
39
    {
40
        $new = clone $this;
41
        $new->credentials = $credentials;
42
43
        return $new;
44
    }
45
46
47
}
48
49