Conditions | 3 |
Paths | 4 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
15 | 3 | public function getFactory($proxyManagerCacheDir = null) |
|
16 | { |
||
17 | 3 | $proxyConfiguration = is_null($proxyManagerCacheDir) ? null : $this->getProxyManagerConfiguration($proxyManagerCacheDir); |
|
18 | |||
19 | 3 | $lazyLoadingFactory = new LazyLoadingValueHolderFactory($proxyConfiguration); |
|
20 | |||
21 | 3 | if ($proxyConfiguration instanceof Configuration) { |
|
22 | 3 | spl_autoload_register($proxyConfiguration->getProxyAutoloader(), true, true); |
|
23 | } |
||
24 | |||
25 | 3 | return $lazyLoadingFactory; |
|
26 | } |
||
27 | |||
47 |