public function connect($db = null, $username = null, $password = null, array $array = [])
    {

        $this->db = $db ?: $this->db;
        $this->username = $username ?: $this->username;
        $this->password = $password ?: $this->password;

        $this->auth($this->db, $this->username, $this->password, $array);

        return $this;
    }
public function connect($db = null, $username = null, $password = null, array $array = [])
    {

        $this->db = $db ?: $this->db;
        $this->username = $username ?: $this->username;
        $this->password = $password ?: $this->password;

        $this->auth($this->db, $this->username, $this->password, $array);

        return $this;
    }
public function connect ( $ db = null , $ username = null , $ password = null , array $ array = [ ] ) { $ this -> db = $ db ? : $ this -> db ; $ this -> username = $ username ? : $ this -> username ; $ this -> password = $ password ? : $ this -> password ; $ this -> auth ( $ this -> db , $ this -> username , $ this -> password , $ array ) ; return $ this ; }
Login to Odoo ERP.

@param string $db
@param string $username
@param string $password
@param array $array
@return $this
@throws OdooException
Login to Odoo ERP .