| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | public function convert($key, $value, $direction = Modifier::DIRECTION_TO) |
||
| 28 | { |
||
| 29 | $method = 'convert'.ucfirst($direction); |
||
| 30 | foreach ($this->items as $modifier) { |
||
| 31 | if ($modifier->canHandle($value, $direction)) { |
||
| 32 | $this->keys[] = $key; |
||
| 33 | return $modifier->$method($value); |
||
| 34 | } |
||
| 35 | } |
||
| 36 | return $value; |
||
| 37 | } |
||
| 38 | } |
||
| 39 |