Total Complexity | 7 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Coverage | 71.43% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
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 |
||
36 | } |
||
37 | |||
38 | public function setProprietary(?string $proprietary): void |
||
39 | { |
||
40 | $this->proprietary = $proprietary; |
||
41 | } |
||
42 | 1 | ||
43 | public function getCode(): ?string |
||
46 | } |
||
47 | 4 | ||
48 | public function setCode(?string $code): void |
||
51 | } |
||
52 | } |
||
53 |