Type hinting
This commit is contained in:
parent
e3fefa1aca
commit
cee3bf8412
@ -231,7 +231,7 @@ abstract class DB_SQL {
|
|||||||
* @param array $indexes
|
* @param array $indexes
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
abstract public function create_table($name, $columns, $constraints=array(), $indexes=array());
|
abstract public function create_table($name, $columns, array $constraints=array(), array $indexes=array());
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get database-specific sql to drop a table
|
* Get database-specific sql to drop a table
|
||||||
|
@ -27,7 +27,7 @@ class Firebird_SQL extends DB_SQL {
|
|||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function create_table($name, $fields, $constraints=array(), $indexes=array())
|
public function create_table($name, $fields, array $constraints=array(), array $indexes=array())
|
||||||
{
|
{
|
||||||
$column_array = array();
|
$column_array = array();
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
*
|
*
|
||||||
* @return [type]
|
* @return [type]
|
||||||
*/
|
*/
|
||||||
public function create_table($name, $columns, $constraints=array(), $indexes=array())
|
public function create_table($name, $columns, array $constraints=array(), array $indexes=array())
|
||||||
{
|
{
|
||||||
//TODO: implement
|
//TODO: implement
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
*/
|
*/
|
||||||
class pgSQL_SQL extends DB_SQL {
|
class pgSQL_SQL extends DB_SQL {
|
||||||
|
|
||||||
public function create_table($name, $columns, $constraints=array(), $indexes=array())
|
public function create_table($name, $columns, array $constraints=array(), array $indexes=array())
|
||||||
{
|
{
|
||||||
//TODO: implement
|
//TODO: implement
|
||||||
}
|
}
|
||||||
|
@ -26,7 +26,7 @@ class SQLite_SQL extends DB_SQL {
|
|||||||
* @param array $indexes // column => index pairs
|
* @param array $indexes // column => index pairs
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function create_table($name, $columns, $constraints=array(), $indexes=array())
|
public function create_table($name, $columns, array $constraints=array(), array $indexes=array())
|
||||||
{
|
{
|
||||||
$column_array = array();
|
$column_array = array();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user