charset = $charset; } public function initialize(mysqli $connection): void { if ($connection->set_charset($this->charset)) { return; } throw InvalidCharset::fromCharset($connection, $this->charset); } }