| 1 | <?php |
||
| 32 | trait DriverAwareTrait |
||
| 33 | { |
||
| 34 | /** |
||
| 35 | * the driver |
||
| 36 | * |
||
| 37 | * @var DriverInterface |
||
| 38 | * @access protected |
||
| 39 | */ |
||
| 40 | protected $driver; |
||
| 41 | |||
| 42 | /** |
||
| 43 | * {@inheritDoc} |
||
| 44 | * @since 2.0.1 able to set NULL |
||
| 45 | */ |
||
| 46 | public function setDriver(DriverInterface $driver = null) |
||
| 51 | |||
| 52 | /** |
||
| 53 | * {@inheritDoc} |
||
| 54 | */ |
||
| 55 | public function hasDriver()/*# : bool */ |
||
| 59 | |||
| 60 | /** |
||
| 61 | * {@inheritDoc} |
||
| 62 | */ |
||
| 63 | public function getDriver()/*# : DriverInterface */ |
||
| 73 | } |
||
| 74 |