Config   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 47
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
eloc 9
c 1
b 0
f 0
dl 0
loc 47
ccs 4
cts 4
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 3
1
<?php
2
0 ignored issues
show
Coding Style introduced by
Missing file doc comment
Loading history...
3
namespace DMT\Insolvency;
4
5
/**
6
 * Class Config
7
 */
0 ignored issues
show
Coding Style introduced by
Missing @category tag in class comment
Loading history...
Coding Style introduced by
Missing @package tag in class comment
Loading history...
Coding Style introduced by
Missing @author tag in class comment
Loading history...
Coding Style introduced by
Missing @license tag in class comment
Loading history...
Coding Style introduced by
Missing @link tag in class comment
Loading history...
8
class Config
9
{
10
    /**
11
     * The soap WSDL.
12
     *
13
     * @var string $wsdl [optional]
14
     */
15
    public $wsdl;
16
17
    /**
18
     * The soap end point.
19
     *
20
     * @var string $endPoint
21
     */
22
    public $endPoint = 'https://webservice.rechtspraak.nl/cir.asmx';
23
24
    /**
25
     * The authorized user.
26
     *
27
     * @var string $user
28
     */
29
    public $user;
30
31
    /**
32
     * The password for the authorized user.
33
     *
34
     * @var string $password
35
     */
36
    public $password;
37
38
    /**
39
     * The end point for retrieving the document.
40
     *
41
     * @var string $documentUri
42
     */
43
    public $documentUri = 'https://insolventies.rechtspraak.nl/services/verslagenservice/getpdf/';
44
45
    /**
46
     * Config constructor.
47
     *
48
     * @param array $options
0 ignored issues
show
Coding Style introduced by
Missing parameter comment
Loading history...
49
     */
50 14
    public function __construct(array $options = [])
51
    {
52 14
        foreach ($options as $property => $value) {
53 14
            if (property_exists($this, $property)) {
54 14
                $this->{$property} = $value;
55
            }
56
        }
57 14
    }
58
}
59