public function get() { if (!$this->stmt) { $this->execute(); } $res = $this->stmt->fetchAll(PDO::FETCH_ASSOC); $this->rewind(); $this->stmt = null; return $res; }