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

processParam()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

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