Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
34 | public function prepareMultipleCriteriaValueObject($criteria) |
||
35 | { |
||
36 | $criteriaValueObjects = []; |
||
37 | |||
38 | foreach ($criteria as $criterion) { |
||
39 | $criteriaValueObjects[] = new CriteriaValueObject( |
||
40 | $criterion->id, |
||
41 | $criterion->description, |
||
42 | $criterion->orderIndex, |
||
43 | $criterion->max |
||
44 | ); |
||
45 | } |
||
46 | |||
47 | return $criteriaValueObjects; |
||
48 | } |
||
49 | } |
||
50 |