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

RewriterFactory::createRewrites()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 6
ccs 2
cts 2
cp 1
rs 9.4285
c 1
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
crap 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