Completed
Pull Request — master (#35)
by Krzysztof
04:21
created

CriteriaBuilderCollectionCompilerPass   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A processParam() 0 12 1
1
<?php
2
3
namespace KGzocha\Bundle\SearcherBundle\DependencyInjection\CompilerPass;
4
5
use Symfony\Component\DependencyInjection\ContainerBuilder;
6
7
/**
8
 * @author Krzysztof Gzocha <[email protected]>
9
 */
10
class CriteriaBuilderCollectionCompilerPass extends AbstractContextCompilerPass
11
{
12
    /**
13
     * {@inheritdoc}
14
     */
15 14
    protected function processParam(
16
        $contextId,
17
        array &$paramConfig,
18
        ContainerBuilder $container
19
    ) {
20 14
        return $this->buildDefinition(
21
            $container,
22
            $contextId,
23 14
            $this->buildServiceName($contextId, self::BUILDER_COLLECTION_PARAMETER),
24 14
            $paramConfig[self::BUILDER_COLLECTION_PARAMETER]
25
        );
26
    }
27
}
28