Completed
Push — master ( 8c66d9...9360f0 )
by Hannes
03:21 queued 02:00
created

RewriterFactory   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A createPreprocessors() 0 7 1
A createRewrites() 0 6 1
1
<?php
2
3
namespace byrokrat\banking\Rewriter;
4
5
/**
6
 * Create standard sets of preprocessors and rewrites
7
 */
8
class RewriterFactory
9
{
10 100
    public function createPreprocessors()
11
    {
12
        return [
13 100
            new NonDigitRemovingRewriter,
14 100
            new LeftTrimRewriter
15
        ];
16
    }
17
18 100
    public function createRewrites()
19
    {
20
        return [
21 100
            new SwedbankCheckDigitRewriter
22
        ];
23
    }
24
}
25