1 | <?php |
||
13 | abstract class AbstractDatabaseManipulator |
||
14 | { |
||
15 | |||
16 | const CONVERT_TO_DRIVER = 'driver'; |
||
17 | const CONVERT_TO_YENTU = 'yentu'; |
||
18 | |||
19 | private $schemaDescription; |
||
20 | private $assertor; |
||
21 | private $connection; |
||
22 | private $dumpQuery; |
||
23 | private $disableQuery; |
||
24 | protected $defaultSchema; |
||
25 | private $io; |
||
26 | |||
27 | 33 | public function __construct(Yentu $yentu, DriverFactory $driverFactory, Io $io) |
|
33 | |||
34 | 33 | public function __get($name) |
|
40 | |||
41 | 10 | public function setDumpQuery($dumpQuery) |
|
45 | |||
46 | 10 | public function setDisableQuery($disableQuery) |
|
50 | |||
51 | 30 | public function __call($name, $arguments) |
|
63 | |||
64 | 30 | public function query($query, $bind = false) |
|
80 | |||
81 | 27 | public function disconnect() |
|
85 | |||
86 | 1 | public function getDefaultSchema() |
|
90 | |||
91 | 30 | public function getAssertor() |
|
98 | |||
99 | abstract protected function _addSchema($name); |
||
100 | |||
101 | abstract protected function _dropSchema($name); |
||
102 | |||
103 | abstract protected function _addTable($details); |
||
104 | |||
105 | abstract protected function _dropTable($details); |
||
106 | |||
107 | abstract protected function _changeTableName($details); |
||
108 | |||
109 | abstract protected function _addColumn($details); |
||
110 | |||
111 | abstract protected function _changeColumnNulls($details); |
||
112 | |||
113 | abstract protected function _changeColumnName($details); |
||
114 | |||
115 | abstract protected function _changeColumnDefault($details); |
||
116 | |||
117 | abstract protected function _dropColumn($details); |
||
118 | |||
119 | abstract protected function _addPrimaryKey($details); |
||
120 | |||
121 | abstract protected function _dropPrimaryKey($details); |
||
122 | |||
123 | abstract protected function _addUniqueKey($details); |
||
124 | |||
125 | abstract protected function _dropUniqueKey($details); |
||
126 | |||
127 | abstract protected function _addAutoPrimaryKey($details); |
||
128 | |||
129 | abstract protected function _dropAutoPrimaryKey($details); |
||
130 | |||
131 | abstract protected function _addForeignKey($details); |
||
132 | |||
133 | abstract protected function _dropForeignKey($details); |
||
134 | |||
135 | abstract protected function _addIndex($details); |
||
136 | |||
137 | abstract protected function _dropIndex($details); |
||
138 | |||
139 | abstract protected function _addView($details); |
||
140 | |||
141 | abstract protected function _dropView($details); |
||
142 | |||
143 | abstract protected function _changeViewDefinition($details); |
||
144 | |||
145 | protected function _changeForeignKeyOnDelete($details) |
||
150 | |||
151 | protected function _changeForeignKeyOnUpdate($details) |
||
156 | |||
157 | protected function _executeQuery($details) |
||
161 | |||
162 | protected function _reverseQuery($details) |
||
166 | |||
167 | abstract public function convertTypes($type, $direction, $length); |
||
168 | |||
169 | /** |
||
170 | * |
||
171 | * @return SchemaDescription |
||
172 | */ |
||
173 | 33 | public function getDescription() |
|
180 | |||
181 | 8 | public function setVersion($version) |
|
185 | |||
186 | public function getVersion() |
||
191 | |||
192 | 6 | public function getLastSession() |
|
197 | |||
198 | 3 | public function getSessionVersions($session) |
|
211 | |||
212 | 27 | public function createHistory() |
|
232 | |||
233 | 10 | public function __clone() |
|
239 | |||
240 | } |
||
241 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.