Username::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 1
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 Username
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 Username
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 $username;
19
20
    /**
21
     * Username constructor.
22
     *
23
     * @param string $username
0 ignored issues
show
Coding Style introduced by
Missing parameter comment
Loading history...
24
     */
25 12
    public function __construct(string $username)
26
    {
27 12
        $this->username = $username;
28 12
    }
29
}
30