]> git.mxchange.org Git - core.git/blobdiff - framework/main/interfaces/database/middleware/class_DatabaseConnector.php
Refacuring:
[core.git] / framework / main / interfaces / database / middleware / class_DatabaseConnector.php
index 3f10caded4c10556c6950860b199135223ad1641..f4d66e9a0fd7b4db09263bcfd0b1225791026069 100644 (file)
@@ -47,7 +47,7 @@ interface DatabaseConnector extends FrameworkDatabase {
         * @param       $host   Hostname to use
         * @return      void
         */
-       function setConnectionData ($login, $pass, $dbase, $host='localhost');
+       function setConnectionData (string $login, string $pass, string $dbase, string $host = 'localhost');
 
        /**
         * Getter for connection data
@@ -78,7 +78,7 @@ interface DatabaseConnector extends FrameworkDatabase {
         * @param       $criteriaInstance       An instance of a Criteria class
         * @return      $result                         The result as an array
         */
-       function doSelectByTableCriteria ($tableName, Criteria $criteriaInstance);
+       function doSelectByTableCriteria (string $tableName, Criteria $criteriaInstance);
 
        /**
         * Getter for last exception
@@ -109,7 +109,7 @@ interface DatabaseConnector extends FrameworkDatabase {
         * @param       $tableName              Name of table we need the primary key column from
         * @return      $primaryKey             Primary key column of requested table
         */
-       function getPrimaryKeyOfTable ($tableName);
+       function getPrimaryKeyOfTable (string $tableName);
 
        /**
         * Removes non-public data from given array.
@@ -125,6 +125,6 @@ interface DatabaseConnector extends FrameworkDatabase {
         * @param       $tableName      Table name
         * @return      $count          Total rows of given table
         */
-       function countTotalRows($tableName);
+       function countTotalRows (string $tableName);
 
 }