public function __construct($db, $query) { $this->_db = $db; $this->_query = $query; $this->_adapter = DialectFactory::create(); }