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

CellCollectionCompilerPass   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
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 24
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0

1 Method

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