Completed
Branch master (3b2eee)
by Krzysztof
05:35
created

CellCollectionCompilerPass::processParam()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 15
Code Lines 11

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 15
ccs 6
cts 6
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 11
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 CellCollectionCompilerPass extends AbstractChainsCompilerPass
11
{
12
    const CELL_COLLECTION = 'cell_collection';
13
14
    /**
15
     * @inheritDoc
16
     */
17 5
    protected function processParam(
18
        $contextId,
19
        array &$paramConfig,
20
        ContainerBuilder $container
21
    ) {
22 5
        $this->buildDefinition(
23
            $container,
24
            $contextId,
25 5
            $this->buildChainServiceName(
26
                $contextId,
27 5
                self::CELL_COLLECTION
28
            ),
29 5
            $paramConfig[self::CELL_COLLECTION]
30
        );
31 5
    }
32
33
}
34