public function __construct($config = []) { if (is_array($config)) { $this->config = array_merge($this->config, $config); } }