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

CreditorReferenceInformation   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Test Coverage

Coverage 66.67%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
c 1
b 0
f 0
lcom 1
cbo 0
dl 0
loc 35
ccs 6
cts 9
cp 0.6667
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getRef() 0 4 1
A setRef() 0 4 1
A fromUnstructured() 0 6 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