| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 34 | 2 | public function process(&$item) |
|
| 35 | { |
||
| 36 | 2 | $accessor = new PropertyAccessor(); |
|
| 37 | |||
| 38 | 2 | foreach ($this->converters as $property => $converters) { |
|
| 39 | 2 | foreach ($converters as $converter) { |
|
| 40 | 2 | $orgValue = $accessor->getValue($item, $property); |
|
| 41 | 2 | $value = call_user_func($converter, $orgValue); |
|
| 42 | 2 | $accessor->setValue($item,$property,$value); |
|
| 43 | 2 | } |
|
| 44 | 2 | } |
|
| 45 | |||
| 46 | 2 | return true; |
|
| 47 | } |
||
| 48 | } |
||
| 49 |