protected function instantiateConfig($config = null)
    {
        if (is_null($this->config) || ! is_null($config)) {
            $this->config = ! is_null($config)
                ? $config
                : new Config($this->helper);
        }

        return $this->config;
    }
protected function instantiateConfig($config = null)
    {
        if (is_null($this->config) || ! is_null($config)) {
            $this->config = ! is_null($config)
                ? $config
                : new Config($this->helper);
        }

        return $this->config;
    }
protected function instantiateConfig ( $ config = null ) { if ( is_null ( $ this -> config ) || ! is_null ( $ config ) ) { $ this -> config = ! is_null ( $ config ) ? $ config : new Config ( $ this -> helper ) ; } return $ this -> config ; }
Instantiate config.

@param object|null $config
@return Config
Instantiate config .