Completed
Pull Request — master (#59)
by
unknown
01:33
created

CreditorReferenceInformation::getProprietary()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Genkgo\Camt\DTO;
4
5
/**
6
 * Class CreditorReferenceInformation
7
 * @package Genkgo\Camt\DTO
8
 */
9
class CreditorReferenceInformation
10
{
11
    /**
12
     * @var string
13
     */
14
    private $ref;
15
16
    /**
17
     * @var string
18
     */
19
    private $code;
20
21
    /**
22
     * @var string
23
     */
24
    private $proprietary;
25
26
    /**
27
     * @return string
28
     */
29 13
    public function getRef()
30
    {
31 13
        return $this->ref;
32
    }
33
34
    /**
35
     * @param string $ref
36
     */
37 13
    public function setRef($ref)
38
    {
39 13
        $this->ref = $ref;
40 13
    }
41
42
    /**
43
     * @param $ref
44
     *
45
     * @return static
46
     */
47
    public static function fromUnstructured($ref)
48
    {
49
        $information = new static;
50
        $information->ref = $ref;
51
        return $information;
52
    }
53
54
    /**
55
     * @return string
56
     */
57 1
    public function getProprietary()
58
    {
59 1
        return $this->proprietary;
60
    }
61
62
    /**
63
     * @param string $proprietary
64
     */
65 4
    public function setProprietary($proprietary)
66
    {
67 4
        $this->proprietary = $proprietary;
68 4
    }
69
70
    /**
71
     * @return string
72
     */
73 1
    public function getCode()
74
    {
75 1
        return $this->code;
76
    }
77
78
    /**
79
     * @param string $code
80
     */
81 12
    public function setCode($code)
82
    {
83 12
        $this->code = $code;
84 12
    }
85
}
86