Skip to content
Permalink
Browse files

Update doc blocks.

  • Loading branch information...
markstory committed May 21, 2013
1 parent 9fd3a00 commit b6d1d1c7158e62035813bad1515fced87ee9e53f
@@ -171,11 +171,11 @@ public function extraSchemaColumns() {
/**
* Generate the SQL to create a table.
*
* @param Table $table Table instance
* @param Cake\Database\Schema\Table $table Table instance
* @param array $columns The columns to go inside the table.
* @param array $constraints The constraints for the table.
* @param array $indexes The indexes for the table.
* @return array A complete CREATE TABLE statement(s)
* @return array Complete CREATE TABLE statement(s)
*/
public function createTableSql($table, $columns, $constraints, $indexes) {
$content = implode(",\n", array_merge($columns, $constraints, $indexes));
@@ -304,13 +304,13 @@ public function constraintSql(Table $table, $name) {
/**
* Generate the SQL to create a table.
*
* @param string $table The name of the table.
* @param Cake\Database\Schema\Table $table Table instance.
* @param array $columns The columns to go inside the table.
* @param array $constraints The constraints for the table.
* @param array $indexes The indexes for the table.
* @return string A complete CREATE TABLE statement
* @return string Complete CREATE TABLE statement
*/
public function createTableSql($table, $columns, $constraints, $indexes) {
public function createTableSql(Table $table, $columns, $constraints, $indexes) {
$content = array_merge($columns, $constraints);
$content = implode(",\n", array_filter($content));
$tableName = $this->_driver->quoteIdentifier($table->name());
@@ -254,11 +254,11 @@ public function indexSql(Table $table, $name) {
/**
* Generate the SQL to create a table.
*
* @param Table $table Table instance
* @param Table $table Cake\Database\Schema\Table instance
* @param array $columns The columns to go inside the table.
* @param array $constraints The constraints for the table.
* @param array $indexes The indexes for the table.
* @return array A complete CREATE TABLE statement(s)S
* @return array Complete CREATE TABLE statement(s)S
*/
public function createTableSql($table, $columns, $constraints, $indexes) {
$lines = array_merge($columns, $constraints);

0 comments on commit b6d1d1c

Please sign in to comment.
You can’t perform that action at this time.