AbstractList   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 5
eloc 3
c 0
b 0
f 0
dl 0
loc 37
ccs 9
cts 9
cp 1
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A buildFilterFields() 0 2 1
A buildJoinFields() 0 3 1
A configureQuery() 0 2 1
A setParameters() 0 2 1
A configure() 0 3 1
1
<?php
2
3
namespace Povs\ListerBundle\Declaration;
4
5
use Doctrine\ORM\QueryBuilder;
6
use Povs\ListerBundle\Mapper\FilterMapper;
7
use Povs\ListerBundle\Mapper\JoinMapper;
8
9
/**
10
 * @author Povilas Margaiatis <[email protected]>
11
 */
12
abstract class AbstractList implements ListInterface
13
{
14
    /**
15
     * @inheritDoc
16
     */
17 1
    public function setParameters(array $parameters): void
18
    {
19 1
    }
20
21
    /**
22
     * @inheritDoc
23
     */
24 1
    public function configure(): array
25
    {
26 1
        return [];
27
    }
28
29
    /**
30
     * @inheritDoc
31
     */
32 1
    public function buildFilterFields(FilterMapper $filterMapper): void
33
    {
34 1
    }
35
36
    /**
37
     * @inheritdoc
38
     */
39 1
    public function buildJoinFields(JoinMapper $joinMapper, ListValueInterface $value): void
40
    {
41 1
        $joinMapper->build();
42
    }
43
44
    /**
45
     * @inheritDoc
46
     */
47 1
    public function configureQuery(QueryBuilder $queryBuilder, ListValueInterface $value): void
48
    {
49 1
    }
50
}
51