result = $result; } /** * @return int Number of rows affected by the INSERT, UPDATE, or DELETE query. */ public function getAffectedRowCount(): int { return $this->result->affectedRows; } }