diff options
Diffstat (limited to 'vendor/doctrine/orm/src/Mapping/UniqueConstraint.php')
-rw-r--r-- | vendor/doctrine/orm/src/Mapping/UniqueConstraint.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/vendor/doctrine/orm/src/Mapping/UniqueConstraint.php b/vendor/doctrine/orm/src/Mapping/UniqueConstraint.php new file mode 100644 index 0000000..3180be0 --- /dev/null +++ b/vendor/doctrine/orm/src/Mapping/UniqueConstraint.php | |||
@@ -0,0 +1,24 @@ | |||
1 | <?php | ||
2 | |||
3 | declare(strict_types=1); | ||
4 | |||
5 | namespace Doctrine\ORM\Mapping; | ||
6 | |||
7 | use Attribute; | ||
8 | |||
9 | #[Attribute(Attribute::TARGET_CLASS | Attribute::IS_REPEATABLE)] | ||
10 | final class UniqueConstraint implements MappingAttribute | ||
11 | { | ||
12 | /** | ||
13 | * @param array<string>|null $columns | ||
14 | * @param array<string>|null $fields | ||
15 | * @param array<string,mixed>|null $options | ||
16 | */ | ||
17 | public function __construct( | ||
18 | public readonly string|null $name = null, | ||
19 | public readonly array|null $columns = null, | ||
20 | public readonly array|null $fields = null, | ||
21 | public readonly array|null $options = null, | ||
22 | ) { | ||
23 | } | ||
24 | } | ||