Completed
Push — feature/issue-7 ( ac92bc...9d75a7 )
by Mikaël
03:43 queued 11s
created

Created::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 4
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
crap 2
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
    public function __construct($_timestamp, $_namespace = self::NS_WSSU)
21
    {
22
        $this->setTimestampValue($_timestamp);
23
        parent::__construct(self::NAME, $_namespace, $this->getTimestampValue(true));
24
    }
25
}
26