| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 42 | 5 | public function getMap($name, $type = 'dto') |
|
| 43 | { |
||
| 44 | 5 | $map = $this->tryCache($name, $type); |
|
| 45 | 5 | if ($map) { |
|
| 46 | 1 | return $map; |
|
| 47 | } |
||
| 48 | |||
| 49 | 5 | $dir = $this->mapsDirs[$name]; |
|
| 50 | 5 | $map = $this->getByPath($dir . '/' . $type . '.yml'); |
|
| 51 | |||
| 52 | 5 | $this->setCache($name, $type, $map); |
|
| 53 | 5 | return $map; |
|
| 54 | } |
||
| 55 | |||
| 89 | } |