Password::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 1
nc 1
nop 2
crap 1
1
<?php
2
0 ignored issues
show
Coding Style introduced by
Missing file doc comment
Loading history...
3
namespace DMT\Insolvency\Soap\Authorization;
4
5
use JMS\Serializer\Annotation as JMS;
6
7
/**
8
 * Class Password
9
 */
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...
10
class Password
11
{
12
    /**
0 ignored issues
show
Coding Style introduced by
Missing short description in doc comment
Loading history...
13
     * @JMS\Type("string")
14
     * @JMS\XmlValue(cdata=false)
15
     *
16
     * @var string
17
     */
18
    public $password;
19
20
    /**
0 ignored issues
show
Coding Style introduced by
Missing short description in doc comment
Loading history...
21
     * @JMS\SerializedName("Type")
22
     * @JMS\Type("string")
23
     * @JMS\XmlAttribute()
24
     *
25
     * @var string
26
     */
27
    public $typeUri;
28
29
    /**
30
     * Password constructor.
31
     *
32
     * @param string $password
0 ignored issues
show
Coding Style introduced by
Missing parameter comment
Loading history...
Coding Style introduced by
Expected 6 spaces after parameter type; 1 found
Loading history...
33
     * @param string|null $typeUri
0 ignored issues
show
Coding Style introduced by
Missing parameter comment
Loading history...
34
     */
35 12
    public function __construct(string $password, string $typeUri = null)
36
    {
37 12
        $this->password = $password;
38 12
        $this->typeUri = $typeUri;
39 12
    }
40
}
41