SearcherFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 6 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