| Total Complexity | 4 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Coverage | 90% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | abstract class DiscoveryCache |
||
| 9 | { |
||
| 10 | /** @var array */ |
||
| 11 | private static $cache = []; |
||
| 12 | |||
| 13 | 7 | protected static function makeInstance(string $interface) |
|
| 21 | } |
||
| 22 | |||
| 23 | 7 | public static function clearCache(?string $interface = null): void |
|
| 29 | } |
||
| 30 | 7 | } |
|
| 31 | |||
| 32 | /** |
||
| 33 | * @throws RuntimeException If no implementation is available |
||
| 34 | */ |
||
| 35 | abstract protected static function locate(string $interface): string; |
||
| 36 | } |
||
| 37 |