| 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 | /** |
||
| 22 | * Set or replace the configuration found in the factory. |
||
| 23 | * |
||
| 24 | * @param $config |
||
| 25 | */ |
||
| 26 | public function setConfig($config) : void |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Return the configuration currently stored in the factory. |
||
| 33 | * |
||
| 34 | * @param $config |
||
| 35 | * @return array |
||
| 36 | */ |
||
| 37 | public function getConfig($config) : array |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Create a new driver based on the configuration in the factory. |
||
| 44 | * |
||
| 45 | * @return \ntentan\atiaa\Driver |
||
| 46 | */ |
||
| 47 | 33 | public function createDriver() : Driver |
|
| 52 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.