1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<?php
namespace Doctrine\DBAL\Schema;
/**
* Configuration for a Schema.
*/
class SchemaConfig
{
/** @var bool */
protected $hasExplicitForeignKeyIndexes = false;
/** @var int */
protected $maxIdentifierLength = 63;
/** @var string */
protected $name;
/** @var mixed[] */
protected $defaultTableOptions = [];
/**
* @return bool
*/
public function hasExplicitForeignKeyIndexes()
{
return $this->hasExplicitForeignKeyIndexes;
}
/**
* @param bool $flag
*
* @return void
*/
public function setExplicitForeignKeyIndexes($flag)
{
$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
*/
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;
}
}