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