Total Complexity | 4 |
Total Lines | 47 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
11 | final class SelectResult implements SelectResultInterface |
||
12 | { |
||
13 | |||
14 | private $encoder; |
||
15 | |||
16 | private $decoder; |
||
17 | |||
18 | private $values; |
||
19 | |||
20 | 7 | public function __construct( |
|
28 | 7 | } |
|
29 | |||
30 | /** |
||
31 | * {@inheritDoc} |
||
32 | * |
||
33 | * @return array |
||
34 | */ |
||
35 | 2 | public function decode(): array |
|
36 | { |
||
37 | 2 | return array_map([$this->decoder, 'exportValue'], $this->values); |
|
38 | } |
||
39 | |||
40 | /** |
||
41 | * {@inheritDoc} |
||
42 | * |
||
43 | * @return string[] |
||
44 | */ |
||
45 | 3 | public function encode(): array |
|
48 | } |
||
49 | |||
50 | /** |
||
51 | * {@inheritDoc} |
||
52 | * |
||
53 | * @return ValueInterface[] |
||
54 | */ |
||
55 | 2 | public function get(): array |
|
60 |