| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 30 | 1 | public function map($destination, $source) |
|
| 31 | { |
||
| 32 | 1 | $sourceReference = $this->sourceReference; |
|
| 33 | 1 | $mappings = $this->map->getMappings(); |
|
| 34 | |||
| 35 | 1 | $embeddedValues = $sourceReference->getValue($source); |
|
| 36 | |||
| 37 | 1 | $newDestination = $destination; |
|
| 38 | 1 | foreach ($mappings as $mapping) { |
|
| 39 | 1 | $newDestination = $mapping->map($newDestination, $embeddedValues); |
|
| 40 | 1 | } |
|
| 41 | |||
| 42 | 1 | return $newDestination; |
|
| 43 | } |
||
| 44 | } |
||
| 45 |