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