Passed
Branch reduce-soap-envelope-builder-c... (c98539)
by Rait
02:14
created

Issue   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 16
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php
2
3
namespace Raigu\XRoad\SoapEnvelope;
4
5
/**
6
 * I am an issue reference number of X-Road message
7
 *
8
 * I can inject myself into SOAP envelope header
9
 */
10
final class Issue extends DOMElementAsSoapHeaderElement
11
{
12
    /**
13
     * @param string $issue Identifies received application, issue or document
14
     *                      that was the cause of the service request. This
15
     *                      field may be used by the client information system
16
     *                      to connect service requests (and responses) to
17
     *                      working procedures.
18
     */
19 1
    public function __construct(string $issue)
20
    {
21 1
        parent::__construct(
22 1
            new \DOMElement(
23 1
                'issue',
24
                $issue,
25 1
                'http://x-road.eu/xsd/xroad.xsd'
26
            )
27
        );
28 1
    }
29
}
30