/** * @param AbstractCustomConfig $config - The configuration to use when grabbing the database * @param null $name - The name under which this was stored */ public function __construct(AbstractCustomConfig $config = null, $name = null) { if ($config == null) { $config = new DefaultCustomConfig(); } $this->config = $config; parent::__construct($name); }
public function __construct(AbstractCustomConfig &$config, $name) { $this->config = $config; parent::__construct($name); }