| 1 |
<?php |
| 2 |
if (!defined('ABSPATH')) die('No direct access allowed'); |
| 3 |
|
| 4 |
if (!interface_exists('WP_Optimize_Table_Interface')) : |
| 5 |
|
| 6 |
interface WP_Optimize_Table_Interface { |
| 7 |
|
| 8 |
/** |
| 9 |
* Return the table name for this object |
| 10 |
* |
| 11 |
* @return string |
| 12 |
*/ |
| 13 |
public function get_table_name(): string; |
| 14 |
|
| 15 |
/** |
| 16 |
* Return an array with `dbDelta()` field strings (and keys) |
| 17 |
* [ |
| 18 |
* fields => [name => SQL], |
| 19 |
* keys => [name => SQL] |
| 20 |
* ] |
| 21 |
* |
| 22 |
* @return array |
| 23 |
*/ |
| 24 |
public function describe(): array; |
| 25 |
|
| 26 |
/** |
| 27 |
* Returns singleton instance |
| 28 |
* |
| 29 |
* @return WP_Optimize_Table_Interface |
| 30 |
*/ |
| 31 |
public static function get_instance(); |
| 32 |
} |
| 33 |
|
| 34 |
endif; |
| 35 |
|