diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-07-27 10:05:23 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-07-27 10:05:23 +0200 |
| commit | 5bf66662a9bdd62c5bccab15e607cd95cfb8fcab (patch) | |
| tree | 39a1a4629749056191c05dfd899f931701b7acf3 /srcs/phpmyadmin/libraries/classes/Charsets/Charset.php | |
| parent | 5afd237bbd22028b85532b8c0b3fcead49a00764 (diff) | |
| download | ft_server-master.tar.gz ft_server-master.tar.bz2 ft_server-master.zip | |
Removed wordpress and phpmyadmin, my server doesn't handle it well and it brings shame on my famillyHEADmaster
Diffstat (limited to 'srcs/phpmyadmin/libraries/classes/Charsets/Charset.php')
| -rw-r--r-- | srcs/phpmyadmin/libraries/classes/Charsets/Charset.php | 103 |
1 files changed, 0 insertions, 103 deletions
diff --git a/srcs/phpmyadmin/libraries/classes/Charsets/Charset.php b/srcs/phpmyadmin/libraries/classes/Charsets/Charset.php deleted file mode 100644 index 0b25790..0000000 --- a/srcs/phpmyadmin/libraries/classes/Charsets/Charset.php +++ /dev/null @@ -1,103 +0,0 @@ -<?php -/** - * Value object class for a character set - * @package PhpMyAdmin\Charsets - */ -declare(strict_types=1); - -namespace PhpMyAdmin\Charsets; - -/** - * Value object class for a character set - * @package PhpMyAdmin\Charsets - */ -final class Charset -{ - /** - * The character set name - * @var string - */ - private $name; - - /** - * A description of the character set - * @var string - */ - private $description; - - /** - * The default collation for the character set - * @var string - */ - private $defaultCollation; - - /** - * The maximum number of bytes required to store one character - * @var int - */ - private $maxLength; - - /** - * @param string $name Charset name - * @param string $description Description - * @param string $defaultCollation Default collation - * @param int $maxLength Maximum length - */ - private function __construct( - string $name, - string $description, - string $defaultCollation, - int $maxLength - ) { - $this->name = $name; - $this->description = $description; - $this->defaultCollation = $defaultCollation; - $this->maxLength = $maxLength; - } - - /** - * @param array $state State obtained from the database server - * @return Charset - */ - public static function fromServer(array $state): self - { - return new self( - $state['Charset'] ?? '', - $state['Description'] ?? '', - $state['Default collation'] ?? '', - (int) ($state['Maxlen'] ?? 0) - ); - } - - /** - * @return string - */ - public function getName(): string - { - return $this->name; - } - - /** - * @return string - */ - public function getDescription(): string - { - return $this->description; - } - - /** - * @return string - */ - public function getDefaultCollation(): string - { - return $this->defaultCollation; - } - - /** - * @return int - */ - public function getMaxLength(): int - { - return $this->maxLength; - } -} |
