Completed
Pull Request — master (#18)
by Hannes
06:53
created

PlusgiroFormatter   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 10
c 0
b 0
f 0
ccs 5
cts 5
cp 1
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A format() 0 8 1
1
<?php
2
3
namespace byrokrat\banking\Formatter;
4
5
use byrokrat\banking\AccountNumber;
6
7
class PlusgiroFormatter implements FormatterInterface
8
{
9 1
    public function format(AccountNumber $number): string
10
    {
11 1
        return sprintf(
12 1
            '%s-%s',
13 1
            $number->getSerialNumber(),
14 1
            $number->getCheckDigit()
15
        );
16
    }
17
}
18