| 1 | <?php namespace Comodojo\Cache\Traits; |
||
| 21 | trait InstanceTrait { |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Local instance of handler |
||
| 25 | * |
||
| 26 | * @var mixed |
||
| 27 | */ |
||
| 28 | protected $instance; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Return the current instance |
||
| 32 | * |
||
| 33 | * @return mixed |
||
| 34 | */ |
||
| 35 | public function getInstance() { |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Set the current instance |
||
| 43 | */ |
||
| 44 | protected function setInstance($instance) { |
||
| 51 | |||
| 52 | } |
||
| 53 |