for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Da\Mailer\Queue\Backend;
use Da\Mailer\Helper\ArrayHelper;
abstract class AbstractQueueStoreConnection
{
/**
* @var mixed the internal connection instance (ie. PDO)
*/
protected $instance;
* @var array
protected $configuration = [];
* AbstractQueueStoreConnection constructor.
*
* @param array $configuration
protected function __construct(array $configuration = [])
$this->configuration = $configuration;
}
* @param $key
* @param null $default
$default
null
* @return mixed
protected function getConfigurationValue($key, $default = null)
return ArrayHelper::getValue($this->configuration, $key, $default);
* Disconnects previous connection.
public function disconnect()
$this->instance = null;
* @return AbstractQueueStoreConnection
abstract public function connect();
abstract public function getInstance();