Details |
Letzte Änderung |
Log anzeigen
| RSS feed
| Revision |
Autor |
Zeilennr. |
Zeile |
| 148 |
lars |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
declare(strict_types=1);
|
|
|
4 |
|
|
|
5 |
namespace Doctrine\DBAL\Schema\Exception;
|
|
|
6 |
|
|
|
7 |
use Doctrine\DBAL\Schema\SchemaException;
|
|
|
8 |
|
|
|
9 |
use function sprintf;
|
|
|
10 |
|
|
|
11 |
/** @psalm-immutable */
|
|
|
12 |
final class UniqueConstraintDoesNotExist extends SchemaException
|
|
|
13 |
{
|
|
|
14 |
public static function new(string $constraintName, string $table): self
|
|
|
15 |
{
|
|
|
16 |
return new self(
|
|
|
17 |
sprintf('There exists no unique constraint with the name "%s" on table "%s".', $constraintName, $table),
|
|
|
18 |
self::CONSTRAINT_DOESNT_EXIST,
|
|
|
19 |
);
|
|
|
20 |
}
|
|
|
21 |
}
|