One Hat Cyber Team
Your IP :
3.129.216.43
Server IP :
104.21.48.1
Server :
Linux agrigation-prod 5.15.0-67-generic #74-Ubuntu SMP Wed Feb 22 14:14:39 UTC 2023 x86_64
Server Software :
nginx/1.24.0
PHP Version :
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
forge
/
db.gftag.com
/
libraries
/
classes
/
Dbal
/
View File Name :
TableName.php
<?php declare(strict_types=1); namespace PhpMyAdmin\Dbal; use Stringable; use Webmozart\Assert\Assert; use Webmozart\Assert\InvalidArgumentException; /** * @psalm-immutable */ final class TableName implements Stringable { /** * @see https://dev.mysql.com/doc/refman/en/identifier-length.html * @see https://mariadb.com/kb/en/identifier-names/#maximum-length */ private const MAX_LENGTH = 64; /** * @var string * @psalm-var non-empty-string */ private $name; /** * @param mixed $name * * @throws InvalidArgumentException */ private function __construct($name) { Assert::stringNotEmpty($name); Assert::maxLength($name, self::MAX_LENGTH); Assert::notEndsWith($name, ' '); $this->name = $name; } /** * @param mixed $name * * @throws InvalidArgumentException */ public static function fromValue($name): self { return new self($name); } /** * @psalm-return non-empty-string */ public function getName(): string { return $this->name; } /** * @psalm-return non-empty-string */ public function __toString(): string { return $this->name; } }