Total Complexity | 6 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class BindingsMapper |
||
9 | { |
||
10 | const EXPRESSION = "{EXPRESSION:} "; |
||
11 | |||
12 | public function toCache(array $bindings): array |
||
13 | { |
||
14 | foreach ($bindings as &$binding) { |
||
15 | if ($binding instanceof Expression) { |
||
16 | $binding = self::EXPRESSION . $binding->getValue(); |
||
17 | } |
||
18 | } |
||
19 | return $bindings; |
||
20 | } |
||
21 | |||
22 | public function fromCache(array $bindings): array |
||
30 | } |
||
31 | } |
||
32 |