Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
39 | public function findTypeMap($sourceType, $destinationType) |
||
40 | { |
||
41 | $sourceType = ltrim($sourceType, '\\'); |
||
42 | $destinationType = ltrim($destinationType, '\\'); |
||
43 | |||
44 | $key = $this->computeTypePairHash($sourceType, $destinationType); |
||
45 | return isset($this->typeMaps[$key]) |
||
46 | ? $this->typeMaps[$key] |
||
47 | : $this->typeMaps[$key] = $this->typeMapFactory->createTypeMap($sourceType, $destinationType, $this->mappingOptions); |
||
48 | } |
||
49 | |||
60 |