SearcherFactory::build()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 2
cts 2
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 2
crap 1
1
<?php
2
3
namespace KGzocha\Bundle\SearcherBundle\Searcher\Factory;
4
5
use KGzocha\Searcher\Context\SearchingContextInterface;
6
use KGzocha\Searcher\CriteriaBuilder\Collection\CriteriaBuilderCollectionInterface;
7
use KGzocha\Searcher\Searcher;
8
9
/**
10
 * @author Krzysztof Gzocha <[email protected]>
11
 */
12
class SearcherFactory implements SearcherFactoryInterface
13
{
14
    /**
15
     * {@inheritdoc}
16
     */
17 1
    public function build(
18
        CriteriaBuilderCollectionInterface $builderCollection,
19
        SearchingContextInterface $searchingContext
20
    ) {
21 1
        return new Searcher($builderCollection, $searchingContext);
22
    }
23
}
24