Total Complexity | 5 |
Total Lines | 56 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class ListValue implements ListValueInterface |
||
14 | { |
||
15 | /** |
||
16 | * @var ListMapper |
||
17 | */ |
||
18 | private $listMapper; |
||
19 | |||
20 | /** |
||
21 | * @var FilterMapper |
||
22 | */ |
||
23 | private $filterMapper; |
||
24 | |||
25 | /** |
||
26 | * MapperFacade constructor. |
||
27 | * |
||
28 | * @param ListMapper $listMapper |
||
29 | * @param FilterMapper $filterMapper |
||
30 | */ |
||
31 | 5 | public function __construct(ListMapper $listMapper, FilterMapper $filterMapper) |
|
35 | } |
||
36 | |||
37 | /** |
||
38 | * @inheritDoc |
||
39 | */ |
||
40 | 1 | public function hasFilterField(string $id): bool |
|
43 | } |
||
44 | |||
45 | /** |
||
46 | * @inheritDoc |
||
47 | */ |
||
48 | 1 | public function hasListField(string $id): bool |
|
49 | { |
||
50 | 1 | return $this->listMapper->has($id); |
|
51 | } |
||
52 | |||
53 | /** |
||
54 | * @inheritDoc |
||
55 | */ |
||
56 | 1 | public function getFilterValue(string $id) |
|
57 | { |
||
58 | 1 | return $this->filterMapper->getValue($id); |
|
59 | } |
||
60 | |||
61 | /** |
||
62 | * @inheritDoc |
||
63 | */ |
||
64 | 1 | public function getSortValue(string $id): ?string |
|
69 | } |
||
70 | } |
||
71 |