| Conditions | 3 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 9 |
| Ratio | 100 % |
| Tests | 5 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | 8 | public static function get(MockingStrategyInterface $mockingStrategy): ProxyGenerator |
|
| 25 | { |
||
| 26 | 8 | $key = self::key($mockingStrategy); |
|
| 27 | 8 | if (!array_key_exists($key, self::$proxyGenerators) || !self::$proxyGenerators[$key] instanceof ProxyGenerator) { |
|
| 28 | 2 | self::$proxyGenerators[$key] = static::build($mockingStrategy); |
|
| 29 | } |
||
| 30 | |||
| 31 | 8 | return self::$proxyGenerators[$key]; |
|
| 32 | } |
||
| 33 | |||
| 52 |