diff options
Diffstat (limited to 'vendor/doctrine/dbal/src/Schema/SchemaConfig.php')
-rw-r--r-- | vendor/doctrine/dbal/src/Schema/SchemaConfig.php | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/vendor/doctrine/dbal/src/Schema/SchemaConfig.php b/vendor/doctrine/dbal/src/Schema/SchemaConfig.php new file mode 100644 index 0000000..86cc84f --- /dev/null +++ b/vendor/doctrine/dbal/src/Schema/SchemaConfig.php | |||
@@ -0,0 +1,61 @@ | |||
1 | <?php | ||
2 | |||
3 | declare(strict_types=1); | ||
4 | |||
5 | namespace Doctrine\DBAL\Schema; | ||
6 | |||
7 | /** | ||
8 | * Configuration for a Schema. | ||
9 | */ | ||
10 | class SchemaConfig | ||
11 | { | ||
12 | protected int $maxIdentifierLength = 63; | ||
13 | |||
14 | protected ?string $name = null; | ||
15 | |||
16 | /** @var array<string, mixed> */ | ||
17 | protected array $defaultTableOptions = []; | ||
18 | |||
19 | public function setMaxIdentifierLength(int $length): void | ||
20 | { | ||
21 | $this->maxIdentifierLength = $length; | ||
22 | } | ||
23 | |||
24 | public function getMaxIdentifierLength(): int | ||
25 | { | ||
26 | return $this->maxIdentifierLength; | ||
27 | } | ||
28 | |||
29 | /** | ||
30 | * Gets the default namespace of schema objects. | ||
31 | */ | ||
32 | public function getName(): ?string | ||
33 | { | ||
34 | return $this->name; | ||
35 | } | ||
36 | |||
37 | /** | ||
38 | * Sets the default namespace name of schema objects. | ||
39 | */ | ||
40 | public function setName(?string $name): void | ||
41 | { | ||
42 | $this->name = $name; | ||
43 | } | ||
44 | |||
45 | /** | ||
46 | * Gets the default options that are passed to Table instances created with | ||
47 | * Schema#createTable(). | ||
48 | * | ||
49 | * @return array<string, mixed> | ||
50 | */ | ||
51 | public function getDefaultTableOptions(): array | ||
52 | { | ||
53 | return $this->defaultTableOptions; | ||
54 | } | ||
55 | |||
56 | /** @param array<string, mixed> $defaultTableOptions */ | ||
57 | public function setDefaultTableOptions(array $defaultTableOptions): void | ||
58 | { | ||
59 | $this->defaultTableOptions = $defaultTableOptions; | ||
60 | } | ||
61 | } | ||