| 1 | <?php |
||
| 31 | trait DriverAwareTrait |
||
| 32 | { |
||
| 33 | /** |
||
| 34 | * Cache driver |
||
| 35 | * |
||
| 36 | * @var DriverInterface |
||
| 37 | * @access protected |
||
| 38 | */ |
||
| 39 | protected $driver; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * {@inheritDoc} |
||
| 43 | */ |
||
| 44 | public function setDriver(DriverInterface $driver) |
||
| 49 | |||
| 50 | /** |
||
| 51 | * {@inheritDoc} |
||
| 52 | */ |
||
| 53 | public function getDriver()/*# : DriverInterface */ |
||
| 68 | |||
| 69 | /** |
||
| 70 | * Try fallback driver. if fail, use NullDriver |
||
| 71 | * |
||
| 72 | * @return DriverInterface |
||
| 73 | * @access protected |
||
| 74 | */ |
||
| 75 | protected function tryFallback()/*# : DriverInterface */ |
||
| 83 | } |
||
| 84 |