Completed
Pull Request — master (#67)
by Krzysztof
12:49
created

EmptyTransformer::transform()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
ccs 0
cts 3
cp 0
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
crap 2
1
<?php
2
3
namespace KGzocha\Searcher\Chain;
4
5
/**
6
 * @author Krzysztof Gzocha <[email protected]>
7
 */
8
class EmptyTransformer implements TransformerInterface
9
{
10
    /**
11
     * @inheritDoc
12
     */
13
    public function transform($results)
14
    {
15
        throw new \RuntimeException(
16
            'Transform method on EmptyTransformer should never be called.'
17
        );
18
    }
19
20
    /**
21
     * @inheritDoc
22
     */
23 1
    public function skip($results)
24
    {
25 1
        return false;
26
    }
27
}
28