Type hinting

This commit is contained in:
Timothy Warren 2012-03-06 10:58:38 -05:00
parent e3fefa1aca
commit cee3bf8412
5 changed files with 5 additions and 5 deletions

View File

@ -231,7 +231,7 @@ abstract class DB_SQL {
* @param array $indexes
* @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

View File

@ -27,7 +27,7 @@ class Firebird_SQL extends DB_SQL {
*
* @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();

View File

@ -27,7 +27,7 @@
*
* @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
}

View File

@ -17,7 +17,7 @@
*/
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
}

View File

@ -26,7 +26,7 @@ class SQLite_SQL extends DB_SQL {
* @param array $indexes // column => index pairs
* @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();