ProprietaryAccount   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Test Coverage

Coverage 60%

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 20
ccs 3
cts 5
cp 0.6
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getIdentification() 0 3 1
A getId() 0 3 1
A __construct() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Genkgo\Camt\DTO;
6
7
class ProprietaryAccount extends Account
8
{
9
    private string $id;
10
11
    public function __construct(string $id)
12
    {
13
        $this->id = $id;
14 5
    }
15
16 5
    public function getId(): string
17 5
    {
18
        return (string) $this->id;
19
    }
20
21
    /**
22
     * @inheritDoc
23
     */
24
    public function getIdentification(): string
25
    {
26
        return (string) $this->id;
27 1
    }
28
}
29