| 1 | <?php |
||
| 7 | class DriverFactory |
||
| 8 | { |
||
| 9 | private $config; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * Create an instance of the driver factory with the connection configurations. |
||
| 13 | * |
||
| 14 | * @param array $config |
||
| 15 | */ |
||
| 16 | 33 | public function __construct(array $config = null) |
|
| 20 | |||
| 21 | public function setConfig($config) : void |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Create a new driver based on the configuration in the factory. |
||
| 28 | * |
||
| 29 | * @return \ntentan\atiaa\Driver |
||
| 30 | */ |
||
| 31 | 33 | public function createDriver() : Driver |
|
| 36 | } |