| Total Complexity | 6 | 
| Total Lines | 34 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 8 | abstract class AbstractAdapter implements AdapterInterface | ||
| 9 | { | ||
| 10 | |||
| 11 | protected $adapterOptions = []; | ||
| 12 | protected $connection; | ||
| 13 | |||
| 14 | public function __construct(array $options) | ||
| 17 | } | ||
| 18 | |||
| 19 | public function getAdapterOptions() | ||
| 20 |     { | ||
| 21 | return $this->adapterOptions; | ||
| 22 | } | ||
| 23 | |||
| 24 | public function setAdapterOptions(array $options) | ||
| 25 |     { | ||
| 26 | $this->adapterOptions = $options['config']; | ||
| 27 | return $this; | ||
| 28 | } | ||
| 29 | |||
| 30 | public function getAdapterOption($name) | ||
| 31 |     { | ||
| 32 |         if (!$this->hasAdapterOption($name)) { | ||
| 33 | return null; | ||
| 34 | } | ||
| 35 | |||
| 36 | return $this->adapterOptions[$name]; | ||
| 37 | } | ||
| 38 | |||
| 39 | public function hasAdapterOption($name) | ||
| 42 | } | ||
| 43 | |||
| 44 | } | ||
| 45 |