public function __construct(Db $db) { $this->db = $db; $this->store = $db->store; $this->age = $db->getAge(); unset($this->count); $this->resource = curl_init(); $this->makeResource([]); }
public function __construct(Db $db, $name) { $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->joins = $db->joins; $this->age = $db->getAge(); }
public function __construct(Db $db, $closure = null) { $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->joins = $db->joins; $this->closure = $closure; $this->age = $db->getAge(); unset($this->count); $this->cursor(); }