From 05e38eadbeb3de19e5b26003c2b401e00bb71df4 Mon Sep 17 00:00:00 2001 From: polo Date: Sun, 18 Oct 2026 00:08:23 +0200 Subject: =?UTF-8?q?sortie=20de=20vendor=20du=20d=C3=A9p=C3=B4t,=20oubli=20?= =?UTF-8?q?dans=20config-template.ini?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../doctrine/dbal/src/Schema/UniqueConstraint.php | 152 --------------------- 1 file changed, 152 deletions(-) delete mode 100644 vendor/doctrine/dbal/src/Schema/UniqueConstraint.php (limited to 'vendor/doctrine/dbal/src/Schema/UniqueConstraint.php') diff --git a/vendor/doctrine/dbal/src/Schema/UniqueConstraint.php b/vendor/doctrine/dbal/src/Schema/UniqueConstraint.php deleted file mode 100644 index a33d446..0000000 --- a/vendor/doctrine/dbal/src/Schema/UniqueConstraint.php +++ /dev/null @@ -1,152 +0,0 @@ - - */ - protected array $columns = []; - - /** - * Platform specific flags - * - * @var array - */ - protected array $flags = []; - - /** - * @param array $columns - * @param array $flags - * @param array $options - */ - public function __construct( - string $name, - array $columns, - array $flags = [], - private readonly array $options = [], - ) { - $this->_setName($name); - - foreach ($columns as $column) { - $this->addColumn($column); - } - - foreach ($flags as $flag) { - $this->addFlag($flag); - } - } - - /** - * Returns the names of the referencing table columns the constraint is associated with. - * - * @return list - */ - public function getColumns(): array - { - return array_keys($this->columns); - } - - /** - * Returns the quoted representation of the column names the constraint is associated with. - * - * But only if they were defined with one or a column name - * is a keyword reserved by the platform. - * Otherwise, the plain unquoted value as inserted is returned. - * - * @param AbstractPlatform $platform The platform to use for quotation. - * - * @return list - */ - public function getQuotedColumns(AbstractPlatform $platform): array - { - $columns = []; - - foreach ($this->columns as $column) { - $columns[] = $column->getQuotedName($platform); - } - - return $columns; - } - - /** @return array */ - public function getUnquotedColumns(): array - { - return array_map($this->trimQuotes(...), $this->getColumns()); - } - - /** - * Returns platform specific flags for unique constraint. - * - * @return array - */ - public function getFlags(): array - { - return array_keys($this->flags); - } - - /** - * Adds flag for a unique constraint that translates to platform specific handling. - * - * @return $this - * - * @example $uniqueConstraint->addFlag('CLUSTERED') - */ - public function addFlag(string $flag): self - { - $this->flags[strtolower($flag)] = true; - - return $this; - } - - /** - * Does this unique constraint have a specific flag? - */ - public function hasFlag(string $flag): bool - { - return isset($this->flags[strtolower($flag)]); - } - - /** - * Removes a flag. - */ - public function removeFlag(string $flag): void - { - unset($this->flags[strtolower($flag)]); - } - - public function hasOption(string $name): bool - { - return isset($this->options[strtolower($name)]); - } - - public function getOption(string $name): mixed - { - return $this->options[strtolower($name)]; - } - - /** @return array */ - public function getOptions(): array - { - return $this->options; - } - - protected function addColumn(string $column): void - { - $this->columns[$column] = new Identifier($column); - } -} -- cgit v1.2.3