Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
40 | public function serialize(MapInterface $features) |
||
41 | { |
||
42 | $serializer = new ToggleSerializer(new OperatorConditionSerializer(new OperatorSerializer())); |
||
43 | $ret = []; |
||
44 | foreach ($features as $key => $toggle) { |
||
45 | $ret[$key] = $serializer->serialize($toggle); |
||
46 | } |
||
47 | |||
48 | return $ret; |
||
49 | } |
||
50 | } |