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

Username   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 3
dl 0
loc 18
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 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