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

IbanAccount   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 71.43%

Importance

Changes 1
Bugs 1 Features 0
Metric Value
wmc 3
c 1
b 1
f 0
lcom 1
cbo 1
dl 0
loc 31
ccs 5
cts 7
cp 0.7143
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getIban() 0 4 1
A getIdentification() 0 4 1
1
<?php
2
3
namespace Genkgo\Camt\Camt053\DTO;
4
5
use Genkgo\Camt\Iban;
6
7
/**
8
 * Class IbanAccount
9
 * @package Genkgo\Camt\Camt053
10
 */
11
class IbanAccount extends Account
12
{
13
    /**
14
     * @var Iban
15
     */
16
    private $iban;
17
18
    /**
19
     * @param Iban $iban
20
     */
21 11
    public function __construct(Iban $iban)
22
    {
23 11
        $this->iban = $iban;
24 11
    }
25
26
    /**
27
     * @return Iban
28
     */
29
    public function getIban()
30
    {
31
        return $this->iban;
32
    }
33
34
    /**
35
     * {@inheritdoc}
36
     */
37 2
    public function getIdentification()
38
    {
39 2
        return (string) $this->iban;
40
    }
41
}
42