set = $resultObj; } public function __destruct() { $this->set->finalize(); unset($this->set); } public function __invoke() { return $this->get(); } public function get() { return $this->set->fetchArray(\SQLITE3_ASSOC); } public function getSingle() { $res = $this->get(); if($res===FALSE) return null; return array_shift($res); } }