Passed
Pull Request — master (#82)
by Krzysztof
04:14
created

DebtorAgent::getName()   A

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 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
1
<?php
2
namespace Genkgo\Camt\DTO;
3
4
class DebtorAgent implements RelatedAgentTypeInterface
5
{
6
    /**
7
     * @var string
8
     */
9
    private $name;
10
11
    /**
12
     * @var string
13
     */
14
    private $BIC;
15
16
    /**
17
     * CreditorAgent constructor.
18
     * @param string $name
19
     * @param string $BIC
20
     */
21 17
    public function __construct($name, $BIC)
22
    {
23 17
        $this->name = $name;
24 17
        $this->BIC = $BIC;
25 17
    }
26
27
    /**
28
     * @return string
29
     */
30
    public function getName()
31
    {
32
        return $this->name;
33
    }
34
35
    /**
36
     * @param string  $name
37
     */
38
    public function setName($name)
39
    {
40
        $this->name = $name;
41
    }
42
43
    /**
44
     * @return string
45
     */
46
    public function getBIC()
47
    {
48
        return $this->BIC;
49
    }
50
51
    /**
52
     * @param string  $BIC
53
     */
54
    public function setBIC($BIC)
55
    {
56
        $this->BIC = $BIC;
57
    }
58
}
59