| 1 | <?php |
||
| 5 | class WPApi |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Plugin instance. |
||
| 9 | * |
||
| 10 | * @var Plugin |
||
| 11 | */ |
||
| 12 | private static $plugin; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Theme instance. |
||
| 16 | * |
||
| 17 | * @var Theme |
||
| 18 | */ |
||
| 19 | private static $theme; |
||
| 20 | |||
| 21 | private function __construct() |
||
| 24 | |||
| 25 | private function __clone() |
||
| 28 | |||
| 29 | /** |
||
| 30 | * create plugin instance. |
||
| 31 | * |
||
| 32 | * @return Plugin |
||
| 33 | */ |
||
| 34 | public static function plugin() |
||
| 42 | |||
| 43 | /** |
||
| 44 | * create theme instance. |
||
| 45 | * |
||
| 46 | * @return Theme |
||
| 47 | */ |
||
| 48 | public static function theme() |
||
| 56 | } |
||
| 57 |