<?php namespace Doctrine\DBAL\Schema; use Doctrine\Deprecations\Deprecation; /** * Configuration for a Schema. */ class SchemaConfig { /** * @deprecated * * @var bool */ protected $hasExplicitForeignKeyIndexes = false; /** @var int */ protected $maxIdentifierLength = 63; /** @var string|null */ protected $name; /** @var mixed[] */ protected $defaultTableOptions = []; /** * @deprecated * * @return bool */ public function hasExplicitForeignKeyIndexes() { Deprecation::triggerIfCalledFromOutside( 'doctrine/dbal', 'https://github.com/doctrine/dbal/pull/4822', 'SchemaConfig::hasExplicitForeignKeyIndexes() is deprecated.', ); return $this->hasExplicitForeignKeyIndexes; } /** * @deprecated * * @param bool $flag * * @return void */ public function setExplicitForeignKeyIndexes($flag) { Deprecation::trigger( 'doctrine/dbal', 'https://github.com/doctrine/dbal/pull/4822', 'SchemaConfig::setExplicitForeignKeyIndexes() is deprecated.', ); $this->hasExplicitForeignKeyIndexes = (bool) $flag; } /** * @param int $length * * @return void */ public function setMaxIdentifierLength($length) { $this->maxIdentifierLength = (int) $length; } /** @return int */ public function getMaxIdentifierLength() { return $this->maxIdentifierLength; } /** * Gets the default namespace of schema objects. * * @return string|null */ public function getName() { return $this->name; } /** * Sets the default namespace name of schema objects. * * @param string $name The value to set. * * @return void */ public function setName($name) { $this->name = $name; } /** * Gets the default options that are passed to Table instances created with * Schema#createTable(). * * @return mixed[] */ public function getDefaultTableOptions() { return $this->defaultTableOptions; } /** * @param mixed[] $defaultTableOptions * * @return void */ public function setDefaultTableOptions(array $defaultTableOptions) { $this->defaultTableOptions = $defaultTableOptions; } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Exception | Folder | 0755 |
|
|
Visitor | Folder | 0755 |
|
|
AbstractAsset.php | File | 6 KB | 0644 |
|
AbstractSchemaManager.php | File | 49.85 KB | 0644 |
|
Column.php | File | 9.38 KB | 0644 |
|
ColumnDiff.php | File | 4.14 KB | 0644 |
|
Comparator.php | File | 23.55 KB | 0644 |
|
Constraint.php | File | 1.04 KB | 0644 |
|
DB2SchemaManager.php | File | 12.66 KB | 0644 |
|
DefaultSchemaManagerFactory.php | File | 578 B | 0644 |
|
ForeignKeyConstraint.php | File | 11.03 KB | 0644 |
|
Identifier.php | File | 666 B | 0644 |
|
Index.php | File | 8.72 KB | 0644 |
|
LegacySchemaManagerFactory.php | File | 455 B | 0644 |
|
MySQLSchemaManager.php | File | 17.87 KB | 0644 |
|
OracleSchemaManager.php | File | 16.03 KB | 0644 |
|
PostgreSQLSchemaManager.php | File | 23.13 KB | 0644 |
|
SQLServerSchemaManager.php | File | 18.6 KB | 0644 |
|
Schema.php | File | 12.66 KB | 0644 |
|
SchemaConfig.php | File | 2.4 KB | 0644 |
|
SchemaDiff.php | File | 7.53 KB | 0644 |
|
SchemaException.php | File | 5.41 KB | 0644 |
|
SchemaManagerFactory.php | File | 381 B | 0644 |
|
Sequence.php | File | 3.28 KB | 0644 |
|
SqliteSchemaManager.php | File | 22.02 KB | 0644 |
|
Table.php | File | 27.74 KB | 0644 |
|
TableDiff.php | File | 9.61 KB | 0644 |
|
UniqueConstraint.php | File | 3.19 KB | 0644 |
|
View.php | File | 445 B | 0644 |
|