banker/src/Driver/AbstractDriver.php

53 lines
1.0 KiB
PHP
Raw Normal View History

2016-08-31 12:18:46 -04:00
<?php
/**
2016-09-05 16:43:37 -04:00
* Banker
2016-08-31 12:18:46 -04:00
*
* A Caching library implementing psr/cache
*
* PHP version 5.6
*
2016-09-05 16:43:37 -04:00
* @package Banker
* @author Timothy J. Warren <tim@timshomepage.net>
2016-08-31 12:18:46 -04:00
* @copyright 2016 Timothy J. Warren
2016-09-05 16:43:37 -04:00
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @version 1.0.0
* @link https://git.timshomepage.net/timw4mail/banker
2016-08-31 12:18:46 -04:00
*/
namespace Aviat\Banker\Driver;
2016-09-06 17:03:43 -04:00
use Psr\Log\LoggerAwareInterface;
2016-08-31 12:18:46 -04:00
/**
* Base class for cache backends
*/
2016-09-06 17:03:43 -04:00
abstract class AbstractDriver implements DriverInterface, LoggerAwareInterface {
use \Aviat\Banker\LoggerTrait;
2016-09-05 16:43:37 -04:00
/**
* The object encapsulating the connection to the cache backend
*
* @var mixed
*/
protected $conn;
2016-08-31 12:18:46 -04:00
2016-09-05 16:43:37 -04:00
/**
* Data to be stored later
*
* @var array
*/
protected $deferred = [];
/**
* Common constructor interface for driver classes
*
* @param array $config - Connection parameters for the specified backend
*/
abstract public function __construct(array $config = []);
2016-09-06 17:03:43 -04:00
/**
* Common destructor
*/
abstract public function __destruct();
2016-08-31 12:18:46 -04:00
}