CreditorReferenceInformation   A
last analyzed

Complexity

Total Complexity 7

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Test Coverage

Coverage 71.43%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 13
dl 0
loc 44
ccs 10
cts 14
cp 0.7143
rs 10
c 1
b 0
f 0
wmc 7

7 Methods

Rating   Name   Duplication   Size   Complexity  
A getProprietary() 0 3 1
A setRef() 0 3 1
A getCode() 0 3 1
A fromUnstructured() 0 6 1
A setCode() 0 3 1
A getRef() 0 3 1
A setProprietary() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Genkgo\Camt\DTO;
6
7
class CreditorReferenceInformation
8
{
9
    private ?string $ref = null;
10
11
    private ?string $code = null;
12
13
    private ?string $proprietary = null;
14
15
    public function getRef(): ?string
16
    {
17
        return $this->ref;
18
    }
19
20
    public function setRef(?string $ref): void
21
    {
22
        $this->ref = $ref;
23
    }
24 14
25
    public static function fromUnstructured(string $ref): self
26 14
    {
27
        $information = new self();
28
        $information->ref = $ref;
29 14
30
        return $information;
31 14
    }
32 14
33
    public function getProprietary(): ?string
34
    {
35
        return $this->proprietary;
36
    }
37
38
    public function setProprietary(?string $proprietary): void
39
    {
40
        $this->proprietary = $proprietary;
41
    }
42 1
43
    public function getCode(): ?string
44 1
    {
45
        return $this->code;
46
    }
47 4
48
    public function setCode(?string $code): void
49 4
    {
50 4
        $this->code = $code;
51
    }
52
}
53