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

Created   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace WsdlToPhp\WsSecurity;
4
5
class Created extends Element
6
{
7
    /**
8
     * Element name.
9
     *
10
     * @var string
11
     */
12
    const NAME = 'Created';
13
14
    /**
15
     * Constructor for Created element.
16
     *
17
     * @param int    $_timestamp the timestamp value
18
     * @param string $_namespace the namespace
19
     */
20 54
    public function __construct($_timestamp, $_namespace = self::NS_WSSU)
21
    {
22 54
        $this->setTimestampValue($_timestamp);
23 54
        parent::__construct(self::NAME, $_namespace, $this->getTimestampValue(true));
24 54
    }
25
}
26