protected function getWordpressDatabaseInstance()
    {
        global $wpdb;

        if ((! \class_exists('wpdb')) || (! $wpdb) || (! $wpdb instanceof \wpdb)) {
            throw InvalidDatabaseInstanceException::wordpressDatabaseIsNotSet();
        }

        $this->db = $wpdb;
    }