| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 57 | 4 | public function get(string $classname) : ReflectionComposite |
|
| 58 | { |
||
| 59 | 4 | if (!$this->cache->containsKey($classname)) |
|
| 60 | { |
||
| 61 | 4 | $this->cache[$classname] = |
|
| 62 | ( |
||
| 63 | 4 | ReflectionCompositeFactory::fromClassName |
|
| 64 | ( |
||
| 65 | $classname |
||
| 66 | ) |
||
| 67 | ) |
||
| 68 | 4 | ->build(); |
|
| 69 | } |
||
| 70 | |||
| 71 | 4 | return $this->cache[$classname]; |
|
| 72 | } |
||
| 73 | } |
||
| 74 |