Exception
2 years ago
Visitor
9 months ago
AbstractAsset.php
2 years ago
AbstractSchemaManager.php
9 months ago
Column.php
2 years ago
ColumnDiff.php
2 years ago
Comparator.php
2 years ago
Constraint.php
2 years ago
DB2SchemaManager.php
2 years ago
DefaultSchemaManagerFactory.php
2 years ago
ForeignKeyConstraint.php
9 months ago
Identifier.php
2 years ago
Index.php
2 years ago
LegacySchemaManagerFactory.php
2 years ago
MySQLSchemaManager.php
9 months ago
OracleSchemaManager.php
2 years ago
PostgreSQLSchemaManager.php
9 months ago
SQLServerSchemaManager.php
9 months ago
Schema.php
2 years ago
SchemaConfig.php
2 years ago
SchemaDiff.php
2 years ago
SchemaException.php
2 years ago
SchemaManagerFactory.php
2 years ago
Sequence.php
2 years ago
SqliteSchemaManager.php
8 months ago
Table.php
2 years ago
TableDiff.php
2 years ago
UniqueConstraint.php
2 years ago
View.php
2 years ago
SchemaConfig.php
46 lines
| 1 | <?php |
| 2 | namespace MailPoetVendor\Doctrine\DBAL\Schema; |
| 3 | if (!defined('ABSPATH')) exit; |
| 4 | use MailPoetVendor\Doctrine\Deprecations\Deprecation; |
| 5 | class SchemaConfig |
| 6 | { |
| 7 | protected $hasExplicitForeignKeyIndexes = \false; |
| 8 | protected $maxIdentifierLength = 63; |
| 9 | protected $name; |
| 10 | protected $defaultTableOptions = []; |
| 11 | public function hasExplicitForeignKeyIndexes() |
| 12 | { |
| 13 | Deprecation::triggerIfCalledFromOutside('doctrine/dbal', 'https://github.com/doctrine/dbal/pull/4822', 'SchemaConfig::hasExplicitForeignKeyIndexes() is deprecated.'); |
| 14 | return $this->hasExplicitForeignKeyIndexes; |
| 15 | } |
| 16 | public function setExplicitForeignKeyIndexes($flag) |
| 17 | { |
| 18 | Deprecation::trigger('doctrine/dbal', 'https://github.com/doctrine/dbal/pull/4822', 'SchemaConfig::setExplicitForeignKeyIndexes() is deprecated.'); |
| 19 | $this->hasExplicitForeignKeyIndexes = (bool) $flag; |
| 20 | } |
| 21 | public function setMaxIdentifierLength($length) |
| 22 | { |
| 23 | $this->maxIdentifierLength = (int) $length; |
| 24 | } |
| 25 | public function getMaxIdentifierLength() |
| 26 | { |
| 27 | return $this->maxIdentifierLength; |
| 28 | } |
| 29 | public function getName() |
| 30 | { |
| 31 | return $this->name; |
| 32 | } |
| 33 | public function setName($name) |
| 34 | { |
| 35 | $this->name = $name; |
| 36 | } |
| 37 | public function getDefaultTableOptions() |
| 38 | { |
| 39 | return $this->defaultTableOptions; |
| 40 | } |
| 41 | public function setDefaultTableOptions(array $defaultTableOptions) |
| 42 | { |
| 43 | $this->defaultTableOptions = $defaultTableOptions; |
| 44 | } |
| 45 | } |
| 46 |