src/SchemaExtender.php
protected function getWordpressDatabaseInstance()
    {
        global $wpdb;

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

        $this->db = $wpdb;
    }
protected function getWordpressDatabaseInstance()
    {
        global $wpdb;

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

        $this->db = $wpdb;
    }
protected function getWordpressDatabaseInstance ( ) { global $ wpdb ; if ( ( ! \ class_exists ( 'wpdb' ) ) || ( ! $ wpdb ) || ( ! $ wpdb instanceof \ wpdb ) ) { throw InvalidDatabaseInstanceException :: wordpressDatabaseIsNotSet ( ) ; } $ this -> db = $ wpdb ; }
Tightly coupled to the wordpress database instance.

@throws LordDashMe\Wordpress\DB\Exception\InvalidDatabaseInstance

@return void
Tightly coupled to the wordpress database instance .