Completed
Push — master ( 5d18c7...cabcf3 )
by Hannes
16s queued 13s
created

PlusGiro::getClearingNumber()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 2
eloc 2
nc 2
nop 0
crap 2
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace byrokrat\banking;
6
7
use byrokrat\banking\Formatter\PlusgiroFormatter;
8
9 View Code Duplication
class PlusGiro extends UndefinedAccount
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
10
{
11 6
    public function __construct(string $raw, string $serial, string $check)
12
    {
13 6
        parent::__construct($raw, '0000', '', $serial, $check);
14 6
    }
15
16 1
    public function getBankName(): string
17
    {
18 1
        return BankNames::BANK_PLUSGIRO;
19
    }
20
21 1
    public function getNumber(): string
22
    {
23 1
        return $this->format(new PlusgiroFormatter);
24
    }
25
26 1
    public function prettyprint(): string
27
    {
28 1
        return $this->format(new PlusgiroFormatter);
29
    }
30
}
31