Passed
Branch master (86f473)
by Povilas
03:08
created

AbstractList   A

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