charSet = $charSet; } /** * Returns the name of the current character set. * * @return string Character set name. */ public function getCharacterSet(): string { return $this->charSet->charset; } /** * Returns the name of the default collation. * * @return string Default collation name. */ public function getDefaultCollation(): string { return $this->charSet->collation; } /** * Returns the path to the directory the charcter was read from. * May be empty for built-in character sets. * * @return string Source directory. */ public function getDirectory(): string { return $this->charSet->dir; } /** * Returns the minimum character width in bytes for this character set. * * @return int Minimum character width in bytes. */ public function getMinimumWidth(): int { return $this->charSet->min_length; } /** * Returns the maximum character width in bytes for this character set. * * @return int Maximum character width in bytes. */ public function getMaximumWidth(): int { return $this->charSet->max_length; } /** * Returns the internal numeric identifier for this character set. * * @return int Character set identifier. */ public function getId(): int { return $this->charSet->number; } /** * Returns the character set status. * * Whatever that means. Given the (?) in the official documentation, not even they know. * * @return int Character set status. */ public function getState(): int { return $this->charSet->state; } }