| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 51 | 8 | protected function fetchClassMetadata($class) |
|
| 52 | { |
||
| 53 | 8 | $item = $this->pool->getItem(strtr($this->prefix.$class, '\\', '_')); |
|
| 54 | |||
| 55 | 8 | if ($item->isHit()) { |
|
| 56 | 4 | return $item->get(); |
|
| 57 | } |
||
| 58 | |||
| 59 | 4 | $classMetadata = $this->factory->getClassMetadata($class); |
|
| 60 | 4 | $this->pool->save($item->set($classMetadata)); |
|
| 61 | |||
| 62 | 4 | return $classMetadata; |
|
| 63 | } |
||
| 64 | } |
||
| 65 |