Completed
Push — master ( aabf4d...606f02 )
by Frederik
9s
created

CreditorReferenceInformation::fromUnstructured()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
ccs 4
cts 4
cp 1
rs 9.4285
cc 1
eloc 4
nc 1
nop 1
crap 1
1
<?php
2
3
namespace Genkgo\Camt\Camt053\DTO;
4
5
/**
6
 * Class CreditorReferenceInformation
7
 * @package Genkgo\Camt\Camt053
8
 */
9
class CreditorReferenceInformation
10
{
11
    /**
12
     * @var string
13
     */
14
    private $ref;
15
16
    /**
17
     * @return string
18
     */
19 3
    public function getRef()
20
    {
21 3
        return $this->ref;
22
    }
23
24
    /**
25
     * @param string $ref
26
     */
27
    public function setRef($ref)
28
    {
29
        $this->ref = $ref;
30
    }
31
32
    /**
33
     * @param $ref
34
     *
35
     * @return static
36
     */
37 3
    public static function fromUnstructured($ref)
38
    {
39 3
        $information = new static;
40 3
        $information->ref = $ref;
41 3
        return $information;
42
    }
43
}
44