Completed
Push — master ( aabf4d...606f02 )
by Frederik
9s
created

Debtor   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 43
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 43
ccs 0
cts 16
cp 0
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A setAddress() 0 4 1
A getAddress() 0 4 1
A getName() 0 4 1
1
<?php
2
3
namespace Genkgo\Camt\Camt053\DTO;
4
5
/**
6
 * Class Debtor
7
 * @package Genkgo\Camt\Camt053
8
 */
9
class Debtor implements RelatedPartyTypeInterface
10
{
11
    /**
12
     * @var string
13
     */
14
    private $name;
15
    /**
16
     * @var Address
17
     */
18
    private $address;
19
20
    /**
21
     * @param $name
22
     */
23
    public function __construct($name)
24
    {
25
        $this->name = $name;
26
    }
27
28
    /**
29
     * @param Address $address
30
     */
31
    public function setAddress(Address $address)
32
    {
33
        $this->address = $address;
34
    }
35
36
    /**
37
     * @return Address|null
38
     */
39
    public function getAddress()
40
    {
41
        return $this->address;
42
    }
43
44
    /**
45
     * @return string
46
     */
47
    public function getName()
48
    {
49
        return $this->name;
50
    }
51
}
52