Conditions | 4 |
Paths | 4 |
Total Lines | 15 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
17 | public function process(ExampleStoreInterface $store): ExampleStoreInterface |
||
18 | { |
||
19 | $examples = []; |
||
20 | |||
21 | foreach ($store->getExamples() as $example) { |
||
22 | foreach ($example->getAttributes() as $attribute) { |
||
23 | if ($attribute instanceof TransformationInterface) { |
||
24 | $example = $attribute->transform($example); |
||
25 | } |
||
26 | } |
||
27 | |||
28 | $examples[] = $example; |
||
29 | } |
||
30 | |||
31 | return new ArrayExampleStore($examples); |
||
32 | } |
||
34 |