public function __construct(Db $db) { $this->db = $db; $this->wheres = $db->wheres; $this->orders = $db->orders; $this->selects = $db->selects; $this->offset = $db->offset; $this->limit = $db->limit; $this->store = $db->store; $this->age = $db->getAge(); unset($this->count); $this->cursor(); }