Completed
Push — feature/issue-7 ( 9d75a7...1ff64b )
by Mikaël
03:36
created

Username::__construct()   A

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 0
Metric Value
eloc 1
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
crap 1
1
<?php
2
3
namespace WsdlToPhp\WsSecurity;
4
5
class Username extends Element
6
{
7
    /**
8
     * Element name.
9
     *
10
     * @var string
11
     */
12
    const NAME = 'Username';
13
14
    /**
15
     * Constructor for Username element.
16
     *
17
     * @param string $username  the username
18
     * @param string $namespace the namespace
19
     */
20 54
    public function __construct($username, $namespace = self::NS_WSSE)
21
    {
22 54
        parent::__construct(self::NAME, $namespace, $username);
23 54
    }
24
}
25