Completed
Push — wip ( 681ec1 )
by z38
02:37
created

UnstructuredInformation::asDom()   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
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 2
1
<?php
2
3
namespace Z38\SwissPayment\RemittanceInformation;
4
5
/**
6
 * UnstructuredInformation
7
 */
8
class UnstructuredInformation implements RemittanceInformation
9
{
10
    /**
11
     * @var string
12
     */
13
    protected $information;
14
15
    /**
16
     * @param string $information
17
     */
18
    public function __construct($information)
19
    {
20
        $this->information = $information;
21
    }
22
23
    /**
24
     * {@inheritdoc}
25
     */
26
    public function asDom(\DOMDocument $doc)
27
    {
28
        return $doc->createElement('Ustrd', $this->information);
29
    }
30
}
31