Completed
Push — master ( 0d5cb2...ca808c )
by Frederik
8s
created

ProprietaryAccount   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 0 Features 1
Metric Value
wmc 3
c 1
b 0
f 1
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 getId() 0 4 1
A getIdentification() 0 4 1
1
<?php
2
3
namespace Genkgo\Camt\DTO;
4
5
use Genkgo\Camt\DTO\Account;
6
7
/**
8
 * Class ProprietaryAccount
9
 * @package Genkgo\Camt
10
 */
11
class ProprietaryAccount extends Account
12
{
13
    /**
14
     * @var string
15
     */
16
    private $id;
17
18
    /**
19
     * @param string $id
20
     */
21 5
    public function __construct($id)
22
    {
23 5
        $this->id = $id;
24 5
    }
25
26
    /**
27
     * @return string
28
     */
29
    public function getId()
30
    {
31
        return (string) $this->id;
32
    }
33
34
    /**
35
     * {@inheritdoc}
36
     */
37 1
    public function getIdentification()
38
    {
39 1
        return (string) $this->id;
40
    }
41
}
42