diff options
Diffstat (limited to 'vendor/doctrine/dbal/src/Schema/Exception')
14 files changed, 0 insertions, 274 deletions
diff --git a/vendor/doctrine/dbal/src/Schema/Exception/ColumnAlreadyExists.php b/vendor/doctrine/dbal/src/Schema/Exception/ColumnAlreadyExists.php deleted file mode 100644 index 53daac9..0000000 --- a/vendor/doctrine/dbal/src/Schema/Exception/ColumnAlreadyExists.php +++ /dev/null | |||
| @@ -1,19 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Schema\Exception; | ||
| 6 | |||
| 7 | use Doctrine\DBAL\Schema\SchemaException; | ||
| 8 | use LogicException; | ||
| 9 | |||
| 10 | use function sprintf; | ||
| 11 | |||
| 12 | /** @psalm-immutable */ | ||
| 13 | final class ColumnAlreadyExists extends LogicException implements SchemaException | ||
| 14 | { | ||
| 15 | public static function new(string $tableName, string $columnName): self | ||
| 16 | { | ||
| 17 | return new self(sprintf('The column "%s" on table "%s" already exists.', $columnName, $tableName)); | ||
| 18 | } | ||
| 19 | } | ||
diff --git a/vendor/doctrine/dbal/src/Schema/Exception/ColumnDoesNotExist.php b/vendor/doctrine/dbal/src/Schema/Exception/ColumnDoesNotExist.php deleted file mode 100644 index cb1cedf..0000000 --- a/vendor/doctrine/dbal/src/Schema/Exception/ColumnDoesNotExist.php +++ /dev/null | |||
| @@ -1,19 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Schema\Exception; | ||
| 6 | |||
| 7 | use Doctrine\DBAL\Schema\SchemaException; | ||
| 8 | use LogicException; | ||
| 9 | |||
| 10 | use function sprintf; | ||
| 11 | |||
| 12 | /** @psalm-immutable */ | ||
| 13 | final class ColumnDoesNotExist extends LogicException implements SchemaException | ||
| 14 | { | ||
| 15 | public static function new(string $columnName, string $table): self | ||
| 16 | { | ||
| 17 | return new self(sprintf('There is no column with name "%s" on table "%s".', $columnName, $table)); | ||
| 18 | } | ||
| 19 | } | ||
diff --git a/vendor/doctrine/dbal/src/Schema/Exception/ForeignKeyDoesNotExist.php b/vendor/doctrine/dbal/src/Schema/Exception/ForeignKeyDoesNotExist.php deleted file mode 100644 index 3e4c6c6..0000000 --- a/vendor/doctrine/dbal/src/Schema/Exception/ForeignKeyDoesNotExist.php +++ /dev/null | |||
| @@ -1,21 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Schema\Exception; | ||
| 6 | |||
| 7 | use Doctrine\DBAL\Schema\SchemaException; | ||
| 8 | use LogicException; | ||
| 9 | |||
| 10 | use function sprintf; | ||
| 11 | |||
| 12 | /** @psalm-immutable */ | ||
| 13 | final class ForeignKeyDoesNotExist extends LogicException implements SchemaException | ||
| 14 | { | ||
| 15 | public static function new(string $foreignKeyName, string $table): self | ||
| 16 | { | ||
| 17 | return new self( | ||
| 18 | sprintf('There exists no foreign key with the name "%s" on table "%s".', $foreignKeyName, $table), | ||
| 19 | ); | ||
| 20 | } | ||
| 21 | } | ||
diff --git a/vendor/doctrine/dbal/src/Schema/Exception/IndexAlreadyExists.php b/vendor/doctrine/dbal/src/Schema/Exception/IndexAlreadyExists.php deleted file mode 100644 index e8592be..0000000 --- a/vendor/doctrine/dbal/src/Schema/Exception/IndexAlreadyExists.php +++ /dev/null | |||
| @@ -1,21 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Schema\Exception; | ||
| 6 | |||
| 7 | use Doctrine\DBAL\Schema\SchemaException; | ||
| 8 | use LogicException; | ||
| 9 | |||
| 10 | use function sprintf; | ||
| 11 | |||
| 12 | /** @psalm-immutable */ | ||
| 13 | final class IndexAlreadyExists extends LogicException implements SchemaException | ||
| 14 | { | ||
| 15 | public static function new(string $indexName, string $table): self | ||
| 16 | { | ||
| 17 | return new self( | ||
| 18 | sprintf('An index with name "%s" was already defined on table "%s".', $indexName, $table), | ||
| 19 | ); | ||
| 20 | } | ||
| 21 | } | ||
diff --git a/vendor/doctrine/dbal/src/Schema/Exception/IndexDoesNotExist.php b/vendor/doctrine/dbal/src/Schema/Exception/IndexDoesNotExist.php deleted file mode 100644 index ee25fd8..0000000 --- a/vendor/doctrine/dbal/src/Schema/Exception/IndexDoesNotExist.php +++ /dev/null | |||
| @@ -1,19 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Schema\Exception; | ||
| 6 | |||
| 7 | use Doctrine\DBAL\Schema\SchemaException; | ||
| 8 | use LogicException; | ||
| 9 | |||
| 10 | use function sprintf; | ||
| 11 | |||
| 12 | /** @psalm-immutable */ | ||
| 13 | final class IndexDoesNotExist extends LogicException implements SchemaException | ||
| 14 | { | ||
| 15 | public static function new(string $indexName, string $table): self | ||
| 16 | { | ||
| 17 | return new self(sprintf('Index "%s" does not exist on table "%s".', $indexName, $table)); | ||
| 18 | } | ||
| 19 | } | ||
diff --git a/vendor/doctrine/dbal/src/Schema/Exception/IndexNameInvalid.php b/vendor/doctrine/dbal/src/Schema/Exception/IndexNameInvalid.php deleted file mode 100644 index d295eb8..0000000 --- a/vendor/doctrine/dbal/src/Schema/Exception/IndexNameInvalid.php +++ /dev/null | |||
| @@ -1,19 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Schema\Exception; | ||
| 6 | |||
| 7 | use Doctrine\DBAL\Schema\SchemaException; | ||
| 8 | use InvalidArgumentException; | ||
| 9 | |||
| 10 | use function sprintf; | ||
| 11 | |||
| 12 | /** @psalm-immutable */ | ||
| 13 | final class IndexNameInvalid extends InvalidArgumentException implements SchemaException | ||
| 14 | { | ||
| 15 | public static function new(string $indexName): self | ||
| 16 | { | ||
| 17 | return new self(sprintf('Invalid index name "%s" given, has to be [a-zA-Z0-9_].', $indexName)); | ||
| 18 | } | ||
| 19 | } | ||
diff --git a/vendor/doctrine/dbal/src/Schema/Exception/InvalidTableName.php b/vendor/doctrine/dbal/src/Schema/Exception/InvalidTableName.php deleted file mode 100644 index 3b5d89d..0000000 --- a/vendor/doctrine/dbal/src/Schema/Exception/InvalidTableName.php +++ /dev/null | |||
| @@ -1,19 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Schema\Exception; | ||
| 6 | |||
| 7 | use Doctrine\DBAL\Schema\SchemaException; | ||
| 8 | use InvalidArgumentException; | ||
| 9 | |||
| 10 | use function sprintf; | ||
| 11 | |||
| 12 | /** @psalm-immutable */ | ||
| 13 | final class InvalidTableName extends InvalidArgumentException implements SchemaException | ||
| 14 | { | ||
| 15 | public static function new(string $tableName): self | ||
| 16 | { | ||
| 17 | return new self(sprintf('Invalid table name specified "%s".', $tableName)); | ||
| 18 | } | ||
| 19 | } | ||
diff --git a/vendor/doctrine/dbal/src/Schema/Exception/NamespaceAlreadyExists.php b/vendor/doctrine/dbal/src/Schema/Exception/NamespaceAlreadyExists.php deleted file mode 100644 index 4109af5..0000000 --- a/vendor/doctrine/dbal/src/Schema/Exception/NamespaceAlreadyExists.php +++ /dev/null | |||
| @@ -1,19 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Schema\Exception; | ||
| 6 | |||
| 7 | use Doctrine\DBAL\Schema\SchemaException; | ||
| 8 | use LogicException; | ||
| 9 | |||
| 10 | use function sprintf; | ||
| 11 | |||
| 12 | /** @psalm-immutable */ | ||
| 13 | final class NamespaceAlreadyExists extends LogicException implements SchemaException | ||
| 14 | { | ||
| 15 | public static function new(string $namespaceName): self | ||
| 16 | { | ||
| 17 | return new self(sprintf('The namespace with name "%s" already exists.', $namespaceName)); | ||
| 18 | } | ||
| 19 | } | ||
diff --git a/vendor/doctrine/dbal/src/Schema/Exception/SequenceAlreadyExists.php b/vendor/doctrine/dbal/src/Schema/Exception/SequenceAlreadyExists.php deleted file mode 100644 index d374f27..0000000 --- a/vendor/doctrine/dbal/src/Schema/Exception/SequenceAlreadyExists.php +++ /dev/null | |||
| @@ -1,19 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Schema\Exception; | ||
| 6 | |||
| 7 | use Doctrine\DBAL\Schema\SchemaException; | ||
| 8 | use LogicException; | ||
| 9 | |||
| 10 | use function sprintf; | ||
| 11 | |||
| 12 | /** @psalm-immutable */ | ||
| 13 | final class SequenceAlreadyExists extends LogicException implements SchemaException | ||
| 14 | { | ||
| 15 | public static function new(string $sequenceName): self | ||
| 16 | { | ||
| 17 | return new self(sprintf('The sequence "%s" already exists.', $sequenceName)); | ||
| 18 | } | ||
| 19 | } | ||
diff --git a/vendor/doctrine/dbal/src/Schema/Exception/SequenceDoesNotExist.php b/vendor/doctrine/dbal/src/Schema/Exception/SequenceDoesNotExist.php deleted file mode 100644 index fa98cee..0000000 --- a/vendor/doctrine/dbal/src/Schema/Exception/SequenceDoesNotExist.php +++ /dev/null | |||
| @@ -1,19 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Schema\Exception; | ||
| 6 | |||
| 7 | use Doctrine\DBAL\Schema\SchemaException; | ||
| 8 | use LogicException; | ||
| 9 | |||
| 10 | use function sprintf; | ||
| 11 | |||
| 12 | /** @psalm-immutable */ | ||
| 13 | final class SequenceDoesNotExist extends LogicException implements SchemaException | ||
| 14 | { | ||
| 15 | public static function new(string $sequenceName): self | ||
| 16 | { | ||
| 17 | return new self(sprintf('There exists no sequence with the name "%s".', $sequenceName)); | ||
| 18 | } | ||
| 19 | } | ||
diff --git a/vendor/doctrine/dbal/src/Schema/Exception/TableAlreadyExists.php b/vendor/doctrine/dbal/src/Schema/Exception/TableAlreadyExists.php deleted file mode 100644 index b978dbc..0000000 --- a/vendor/doctrine/dbal/src/Schema/Exception/TableAlreadyExists.php +++ /dev/null | |||
| @@ -1,19 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Schema\Exception; | ||
| 6 | |||
| 7 | use Doctrine\DBAL\Schema\SchemaException; | ||
| 8 | use LogicException; | ||
| 9 | |||
| 10 | use function sprintf; | ||
| 11 | |||
| 12 | /** @psalm-immutable */ | ||
| 13 | final class TableAlreadyExists extends LogicException implements SchemaException | ||
| 14 | { | ||
| 15 | public static function new(string $tableName): self | ||
| 16 | { | ||
| 17 | return new self(sprintf('The table with name "%s" already exists.', $tableName)); | ||
| 18 | } | ||
| 19 | } | ||
diff --git a/vendor/doctrine/dbal/src/Schema/Exception/TableDoesNotExist.php b/vendor/doctrine/dbal/src/Schema/Exception/TableDoesNotExist.php deleted file mode 100644 index 8c66a11..0000000 --- a/vendor/doctrine/dbal/src/Schema/Exception/TableDoesNotExist.php +++ /dev/null | |||
| @@ -1,19 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Schema\Exception; | ||
| 6 | |||
| 7 | use Doctrine\DBAL\Schema\SchemaException; | ||
| 8 | use LogicException; | ||
| 9 | |||
| 10 | use function sprintf; | ||
| 11 | |||
| 12 | /** @psalm-immutable */ | ||
| 13 | final class TableDoesNotExist extends LogicException implements SchemaException | ||
| 14 | { | ||
| 15 | public static function new(string $tableName): self | ||
| 16 | { | ||
| 17 | return new self(sprintf('There is no table with name "%s" in the schema.', $tableName)); | ||
| 18 | } | ||
| 19 | } | ||
diff --git a/vendor/doctrine/dbal/src/Schema/Exception/UniqueConstraintDoesNotExist.php b/vendor/doctrine/dbal/src/Schema/Exception/UniqueConstraintDoesNotExist.php deleted file mode 100644 index 3ae5aaa..0000000 --- a/vendor/doctrine/dbal/src/Schema/Exception/UniqueConstraintDoesNotExist.php +++ /dev/null | |||
| @@ -1,21 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Schema\Exception; | ||
| 6 | |||
| 7 | use Doctrine\DBAL\Schema\SchemaException; | ||
| 8 | use LogicException; | ||
| 9 | |||
| 10 | use function sprintf; | ||
| 11 | |||
| 12 | /** @psalm-immutable */ | ||
| 13 | final class UniqueConstraintDoesNotExist extends LogicException implements SchemaException | ||
| 14 | { | ||
| 15 | public static function new(string $constraintName, string $table): self | ||
| 16 | { | ||
| 17 | return new self( | ||
| 18 | sprintf('There exists no unique constraint with the name "%s" on table "%s".', $constraintName, $table), | ||
| 19 | ); | ||
| 20 | } | ||
| 21 | } | ||
diff --git a/vendor/doctrine/dbal/src/Schema/Exception/UnknownColumnOption.php b/vendor/doctrine/dbal/src/Schema/Exception/UnknownColumnOption.php deleted file mode 100644 index a97ee76..0000000 --- a/vendor/doctrine/dbal/src/Schema/Exception/UnknownColumnOption.php +++ /dev/null | |||
| @@ -1,21 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Schema\Exception; | ||
| 6 | |||
| 7 | use Doctrine\DBAL\Schema\SchemaException; | ||
| 8 | use InvalidArgumentException; | ||
| 9 | |||
| 10 | use function sprintf; | ||
| 11 | |||
| 12 | /** @psalm-immutable */ | ||
| 13 | final class UnknownColumnOption extends InvalidArgumentException implements SchemaException | ||
| 14 | { | ||
| 15 | public static function new(string $name): self | ||
| 16 | { | ||
| 17 | return new self( | ||
| 18 | sprintf('The "%s" column option is not supported.', $name), | ||
| 19 | ); | ||
| 20 | } | ||
| 21 | } | ||
