Conditions | 6 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
25 | public function getCache() |
||
26 | { |
||
27 | if ($this->cache) { |
||
28 | return $this->cache; |
||
29 | } |
||
30 | |||
31 | if (property_exists($this, 'app') && $this->app instanceof ServiceContainer |
||
32 | && isset($this->app['cache']) && $this->app['cache'] instanceof CacheInterface) { |
||
33 | return $this->cache = $this->app['cache']; |
||
34 | } |
||
35 | |||
36 | return $this->cache = $this->createDefaultCache(); |
||
37 | } |
||
58 |