CreditorReferenceInformation::setProprietary()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
ccs 0
cts 1
cp 0
crap 2
rs 10
c 0
b 0
f 0
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