/** * Returns number of affected rows. * @return int */ public function getAffectedRows() { $this->connected || $this->connect(); return $this->driver->getAffectedRows(); }