src/IMAP/Client.php
public function setConfig(array $config) {
        $default_account = config('imap.default');
        $default_config  = config("imap.accounts.$default_account");

        foreach ($this->valid_config_keys as $key) {
            $this->$key = isset($config[$key]) ? $config[$key] : $default_config[$key];
        }

        return $this;
    }
public function setConfig(array $config) {
        $default_account = config('imap.default');
        $default_config  = config("imap.accounts.$default_account");

        foreach ($this->valid_config_keys as $key) {
            $this->$key = isset($config[$key]) ? $config[$key] : $default_config[$key];
        }

        return $this;
    }
public function setConfig ( array $ config ) { $ default_account = config ( 'imap.default' ) ; $ default_config = config ( "imap.accounts.$default_account" ) ; foreach ( $ this -> valid_config_keys as $ key ) { $ this -> $ key = isset ( $ config [ $ key ] ) ? $ config [ $ key ] : $ default_config [ $ key ] ; } return $ this ; }
Set the Client configuration

@param array $config

@return self
Set the Client configuration