@@ -85,6 +85,9 @@ discard block |
||
| 85 | 85 | return $this->newVersion; |
| 86 | 86 | } |
| 87 | 87 | |
| 88 | + /** |
|
| 89 | + * @return string |
|
| 90 | + */ |
|
| 88 | 91 | private function generateSchemaCode($description, $ref = false, $prefix = '') |
| 89 | 92 | { |
| 90 | 93 | $refprefix = $ref === true ? 'ref' : '->'; |
@@ -193,6 +196,9 @@ discard block |
||
| 193 | 196 | } |
| 194 | 197 | } |
| 195 | 198 | |
| 199 | + /** |
|
| 200 | + * @param string $type |
|
| 201 | + */ |
|
| 196 | 202 | protected function importConstraints($type, $constraints) |
| 197 | 203 | { |
| 198 | 204 | foreach ($constraints as $name => $constraint) { |
@@ -63,6 +63,9 @@ |
||
| 63 | 63 | $this->io = $io; |
| 64 | 64 | } |
| 65 | 65 | |
| 66 | + /** |
|
| 67 | + * @param string $filter |
|
| 68 | + */ |
|
| 66 | 69 | public function setupOptions($options, &$filter) |
| 67 | 70 | { |
| 68 | 71 | if (isset($options['no-foreign-keys'])) { |
@@ -62,6 +62,9 @@ |
||
| 62 | 62 | } |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | + /** |
|
| 66 | + * @param \yentu\manipulators\AbstractDatabaseManipulator $db |
|
| 67 | + */ |
|
| 65 | 68 | private function getOperations($db, $set) |
| 66 | 69 | { |
| 67 | 70 | $operations = []; |
@@ -177,6 +177,9 @@ |
||
| 177 | 177 | return $this->schemaDescription; |
| 178 | 178 | } |
| 179 | 179 | |
| 180 | + /** |
|
| 181 | + * @param string $version |
|
| 182 | + */ |
|
| 180 | 183 | public function setVersion($version) |
| 181 | 184 | { |
| 182 | 185 | $this->query('INSERT INTO yentu_history(version) values (?)', array($version)); |
@@ -34,6 +34,9 @@ |
||
| 34 | 34 | private $autoIncrementPending; |
| 35 | 35 | private $placeholders = array(); |
| 36 | 36 | |
| 37 | + /** |
|
| 38 | + * @param string $direction |
|
| 39 | + */ |
|
| 37 | 40 | public function convertTypes($type, $direction, $length = null) |
| 38 | 41 | { |
| 39 | 42 | $types = array( |
@@ -549,6 +549,9 @@ |
||
| 549 | 549 | |
| 550 | 550 | } |
| 551 | 551 | |
| 552 | + /** |
|
| 553 | + * @param AbstractDatabaseManipulator $manipulator |
|
| 554 | + */ |
|
| 552 | 555 | public static function wrap($description, $manipulator) |
| 553 | 556 | { |
| 554 | 557 | return new SchemaDescription($description, $manipulator); |