/** * @param null $name * @return SimpleDb */ public function table($name = null) { if ($this->db && !is_null($name)) { $this->db->table($name); } return $this->db; }