public function __construct(Table $table) { $this->table = $table->name(); $this->db = $GLOBALS['wpdb']; }