diff options
Diffstat (limited to 'vendor/doctrine/orm/src/Mapping/Column.php')
-rw-r--r-- | vendor/doctrine/orm/src/Mapping/Column.php | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/vendor/doctrine/orm/src/Mapping/Column.php b/vendor/doctrine/orm/src/Mapping/Column.php new file mode 100644 index 0000000..68121e6 --- /dev/null +++ b/vendor/doctrine/orm/src/Mapping/Column.php | |||
@@ -0,0 +1,36 @@ | |||
1 | <?php | ||
2 | |||
3 | declare(strict_types=1); | ||
4 | |||
5 | namespace Doctrine\ORM\Mapping; | ||
6 | |||
7 | use Attribute; | ||
8 | use BackedEnum; | ||
9 | |||
10 | #[Attribute(Attribute::TARGET_PROPERTY)] | ||
11 | final class Column implements MappingAttribute | ||
12 | { | ||
13 | /** | ||
14 | * @param int|null $precision The precision for a decimal (exact numeric) column (Applies only for decimal column). | ||
15 | * @param int|null $scale The scale for a decimal (exact numeric) column (Applies only for decimal column). | ||
16 | * @param class-string<BackedEnum>|null $enumType | ||
17 | * @param array<string,mixed> $options | ||
18 | * @psalm-param 'NEVER'|'INSERT'|'ALWAYS'|null $generated | ||
19 | */ | ||
20 | public function __construct( | ||
21 | public readonly string|null $name = null, | ||
22 | public readonly string|null $type = null, | ||
23 | public readonly int|null $length = null, | ||
24 | public readonly int|null $precision = null, | ||
25 | public readonly int|null $scale = null, | ||
26 | public readonly bool $unique = false, | ||
27 | public readonly bool $nullable = false, | ||
28 | public readonly bool $insertable = true, | ||
29 | public readonly bool $updatable = true, | ||
30 | public readonly string|null $enumType = null, | ||
31 | public readonly array $options = [], | ||
32 | public readonly string|null $columnDefinition = null, | ||
33 | public readonly string|null $generated = null, | ||
34 | ) { | ||
35 | } | ||
36 | } | ||