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

UnstructuredInformation   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 0
dl 0
loc 23
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A asDom() 0 4 1
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