Total Complexity | 3 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | class Flow |
||
21 | extends \Aimeos\MAdmin\Cache\Proxy\Standard |
||
22 | implements \Aimeos\MW\Cache\Iface |
||
23 | { |
||
24 | private $object; |
||
25 | private $context; |
||
26 | private $cache; |
||
27 | |||
28 | |||
29 | /** |
||
30 | * Initializes the cache controller. |
||
31 | * |
||
32 | * @param \Aimeos\MShop\Context\Item\Iface $context MShop context object |
||
33 | * @param \Neos\Cache\Frontend\StringFrontend $cache Flow cache object |
||
34 | */ |
||
35 | public function __construct( \Aimeos\MShop\Context\Item\Iface $context, \Neos\Cache\Frontend\StringFrontend $cache ) |
||
36 | { |
||
37 | $this->context = $context; |
||
38 | $this->cache = $cache; |
||
39 | } |
||
40 | |||
41 | |||
42 | /** |
||
43 | * Returns the cache object or creates a new one if it doesn't exist yet. |
||
44 | * |
||
45 | * @return \Aimeos\MW\Cache\Iface Cache object |
||
46 | */ |
||
47 | protected function getObject() |
||
57 | } |
||
58 | } |
||
59 |