CacheFactory::get()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
/**
3
 *
4
 * @copyright (c) 2014 phpBB Group
5
 * @license http://opensource.org/licenses/gpl-3.0.php GNU General Public License v3
6
 * @author MichaelC
7
 *
8
 */
9
10
namespace AppBundle\Factory;
11
12
class CacheFactory
13
{
14
	protected $cacheDriver;
15
	protected $container;
16
17
	function __construct($container, $cacheDriver)
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
18
	{
19
		$this->container = $container;
20
		$this->cacheDriver = $cacheDriver;
21
	}
22
23
	public function get()
24
	{
25
		return $this->container->get($this->cacheDriver);
26
	}
27
}
28