| 1 | <?php |
||
| 10 | abstract class AbstractFactory |
||
| 11 | implements AdapterFactory |
||
|
|
|||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var array Factory configuration |
||
| 15 | */ |
||
| 16 | private $config; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Constructor. |
||
| 20 | * @param array $config |
||
| 21 | */ |
||
| 22 | 27 | public function __construct(array $config = []) |
|
| 26 | |||
| 27 | /** |
||
| 28 | * Get config |
||
| 29 | * @return array |
||
| 30 | */ |
||
| 31 | 27 | protected function getConfig() |
|
| 35 | |||
| 36 | /** |
||
| 37 | * Get default config |
||
| 38 | * |
||
| 39 | * @return array |
||
| 40 | */ |
||
| 41 | 27 | protected function getDefaultConfig() |
|
| 45 | } |
||
| 46 |