-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCachemodelFactoryMethod.php
More file actions
54 lines (49 loc) · 1.33 KB
/
CachemodelFactoryMethod.php
File metadata and controls
54 lines (49 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
/**
* Cache Template Factory Method
*
* @package Molajo
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @copyright 2014-2015 Amy Stephen. All rights reserved.
*/
namespace Molajo\Factories\Cachemodel;
use CommonApi\Exception\RuntimeException;
use CommonApi\IoC\FactoryInterface;
use CommonApi\IoC\FactoryBatchInterface;
use Molajo\IoC\FactoryMethod\Base as FactoryMethodBase;
/**
* Cache Template Factory Method
*
* @author Amy Stephen
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @copyright 2014-2015 Amy Stephen. All rights reserved.
* @since 1.0.0
*/
class CachemodelFactoryMethod extends FactoryMethodBase implements FactoryInterface, FactoryBatchInterface
{
/**
* Constructor
*
* @param array $options
*
* @since 1.0
*/
public function __construct(array $options = array())
{
parent::__construct($options);
// $this->product_namespace = 'Molajo\\Cache';
$this->store_instance_indicator = true;
}
/**
* Instantiate Class
*
* @return object
* @since 1.0
* @throws \CommonApi\Exception\RuntimeException
*/
public function instantiateClass()
{
$this->product_result = $this->options['cache_model'];
return $this;
}
}