Issue   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 3
c 0
b 0
f 0
dl 0
loc 13
rs 10

1 Method

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