| @@ -1,22 +1,12 @@ | ||
| 1 | 1 | <?php |
| 2 | -/** | |
| 3 | - * Interface for a Database Driver. | |
| 4 | - * | |
| 5 | - * @todo Review. Heavy refactor maybe needed. | |
| 6 | - * @package WP_Stream | |
| 7 | - */ | |
| 8 | - | |
| 9 | 2 | namespace WP_Stream; |
| 10 | 3 | |
| 11 | -/** | |
| 12 | - * Interface - DB_Driver | |
| 13 | - */ | |
| 14 | 4 | interface DB_Driver { |
| 15 | 5 | /** |
| 16 | 6 | * Insert a record |
| 17 | 7 | * |
| 18 | - * @param array $data Data to be insert into the database. | |
| 8 | + * @param array $data | |
| 19 | 9 | * |
| 20 | 10 | * @return int |
| 21 | 11 | */ |
| 22 | 12 | public function insert_record( $data ); |
| @@ -23,9 +13,9 @@ | ||
| 23 | 13 | |
| 24 | 14 | /** |
| 25 | 15 | * Retrieve records |
| 26 | 16 | * |
| 27 | - * @param array $args Argument to filter the result by. | |
| 17 | + * @param array $args | |
| 28 | 18 | * |
| 29 | 19 | * @return array |
| 30 | 20 | */ |
| 31 | 21 | public function get_records( $args ); |
| @@ -33,9 +23,9 @@ | ||
| 33 | 23 | /** |
| 34 | 24 | * Returns array of existing values for requested column. |
| 35 | 25 | * Used to fill search filters with only used items, instead of all items. |
| 36 | 26 | * |
| 37 | - * @param string $column Column to pull data from. | |
| 27 | + * @param string $column | |
| 38 | 28 | * |
| 39 | 29 | * @return array |
| 40 | 30 | */ |
| 41 | 31 | public function get_column_values( $column ); |
| @@ -40,9 +30,9 @@ | ||
| 40 | 30 | */ |
| 41 | 31 | public function get_column_values( $column ); |
| 42 | 32 | |
| 43 | 33 | /** |
| 44 | - * Public getter to return the names of the tables this driver manages. | |
| 34 | + * Public getter to return table names | |
| 45 | 35 | * |
| 46 | 36 | * @return array |
| 47 | 37 | */ |
| 48 | 38 | public function get_table_names(); |