| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | public function getFunctions() |
||
| 31 | { |
||
| 32 | return [ |
||
| 33 | new ExpressionFunction( |
||
| 34 | 'collection_item', |
||
| 35 | function() { |
||
| 36 | throw new \Exception('ref function does not support compilation'); |
||
| 37 | }, |
||
| 38 | function($foo, $identifier) { |
||
| 39 | return $this->referenceResolver->getReferenceValue('reference:collection_item_' . $identifier); |
||
| 40 | } |
||
| 41 | ), |
||
| 42 | ]; |
||
| 43 | } |
||
| 44 | } |
||
| 45 |