Test Failed
Pull Request — develop (#4)
by Stephen
06:10
created

VersionInfoGet   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 36
rs 10
c 0
b 0
f 0
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
0 ignored issues
show
Bug introduced by
The type Spinen\Ncentral\Type\EiCredentials was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
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