| @@ -7,11 +7,15 @@ | ||
| 7 | 7 | use Averta\WordPress\Event\Filter; |
| 8 | 8 | use Averta\WordPress\Models\WPOptions; |
| 9 | 9 | use Depicter; |
| 10 | 10 | use Depicter\Database\Repository\DocumentRepository; |
| 11 | +use Depicter\Document\Manager as DocumentManager; | |
| 12 | +use Depicter\DataSources\Manager as DataSources; | |
| 11 | 13 | use Depicter\Editor\Editor; |
| 14 | +use Depicter\Editor\EditorData; | |
| 12 | 15 | use Depicter\Front\Front; |
| 13 | 16 | use Depicter\Front\Symbols; |
| 17 | +use Depicter\Modules\Modules; | |
| 14 | 18 | use Depicter\Services\ClientService; |
| 15 | 19 | use Depicter\Services\ExportService; |
| 16 | 20 | use Depicter\Services\ImportService; |
| 17 | 21 | use Depicter\Services\MediaBridge; |
| @@ -17,13 +21,15 @@ | ||
| 17 | 21 | use Depicter\Services\MediaBridge; |
| 18 | 22 | use Depicter\Services\RemoteAPIService; |
| 19 | 23 | use Depicter\Services\StorageService; |
| 20 | 24 | use Depicter\Services\AuthorizationService; |
| 25 | +use Depicter\Services\AuthenticationService; | |
| 21 | 26 | use Depicter\WordPress\DeactivationFeedbackService; |
| 22 | 27 | use Depicter\WordPress\FileUploaderService; |
| 28 | +use Depicter\Services\AIWizardService; | |
| 23 | 29 | use WPEmergeAppCore\AppCore\AppCore; |
| 24 | -use Depicter\WordPress\RoleManager; | |
| 25 | 30 | |
| 31 | + | |
| 26 | 32 | /** |
| 27 | 33 | * "@mixin" annotation for better IDE support. |
| 28 | 34 | * This class is not meant to be used in any other capacity. |
| 29 | 35 | * |
| @@ -44,59 +50,59 @@ | ||
| 44 | 50 | * Get the Theme service instance. |
| 45 | 51 | * |
| 46 | 52 | * @return AppCore |
| 47 | 53 | */ |
| 48 | - public static function core() {} | |
| 54 | + public static function core(): AppCore {} | |
| 49 | 55 | |
| 50 | 56 | /** |
| 51 | 57 | * @return WPOptions |
| 52 | 58 | */ |
| 53 | - public static function options() {} | |
| 59 | + public static function options(): WPOptions {} | |
| 54 | 60 | |
| 55 | 61 | /** |
| 56 | - * @return Depicter\Document\Manager | |
| 62 | + * @return DocumentManager | |
| 57 | 63 | */ |
| 58 | - public static function document() {} | |
| 64 | + public static function document(): DocumentManager {} | |
| 59 | 65 | |
| 60 | 66 | /** |
| 61 | 67 | * @return Action |
| 62 | 68 | */ |
| 63 | - public static function action() {} | |
| 69 | + public static function action(): Action {} | |
| 64 | 70 | |
| 65 | 71 | /** |
| 66 | 72 | * @return Filter |
| 67 | 73 | */ |
| 68 | - public static function filter() {} | |
| 74 | + public static function filter(): Filter {} | |
| 69 | 75 | |
| 70 | 76 | /** |
| 71 | 77 | * @return Editor |
| 72 | 78 | */ |
| 73 | - public static function editor() {} | |
| 79 | + public static function editor(): Editor {} | |
| 74 | 80 | |
| 75 | 81 | /** |
| 76 | 82 | * @return MediaBridge |
| 77 | 83 | */ |
| 78 | - public static function media() {} | |
| 84 | + public static function media(): MediaBridge {} | |
| 79 | 85 | |
| 80 | 86 | /** |
| 81 | 87 | * @return RemoteAPIService |
| 82 | 88 | */ |
| 83 | - public static function remote() {} | |
| 89 | + public static function remote(): RemoteAPIService {} | |
| 84 | 90 | |
| 85 | 91 | /** |
| 86 | 92 | * @return DocumentRepository |
| 87 | 93 | */ |
| 88 | - public static function documentRepository() {} | |
| 94 | + public static function documentRepository():DocumentRepository {} | |
| 89 | 95 | |
| 90 | 96 | /** |
| 91 | 97 | * @return Front |
| 92 | 98 | */ |
| 93 | - public static function front() {} | |
| 99 | + public static function front(): Front{} | |
| 94 | 100 | |
| 95 | 101 | /** |
| 96 | 102 | * @return StorageService |
| 97 | 103 | */ |
| 98 | - public static function storage() {} | |
| 104 | + public static function storage(): StorageService {} | |
| 99 | 105 | |
| 100 | 106 | /** |
| 101 | 107 | * Retrieves the cache module |
| 102 | 108 | * |
| @@ -103,46 +109,66 @@ | ||
| 103 | 109 | * @param string $module |
| 104 | 110 | * |
| 105 | 111 | * @return WPCache |
| 106 | 112 | */ |
| 107 | - public static function cache( $module = 'api' ){} | |
| 113 | + public static function cache( $module = 'api' ): WPCache{} | |
| 108 | 114 | |
| 109 | 115 | /** |
| 110 | 116 | * @return DeactivationFeedbackService |
| 111 | 117 | */ |
| 112 | - public static function deactivationFeedback(){} | |
| 118 | + public static function deactivationFeedback(): DeactivationFeedbackService{} | |
| 113 | 119 | |
| 114 | 120 | /** |
| 115 | 121 | * @return ClientService |
| 116 | 122 | */ |
| 117 | - public static function client(){} | |
| 123 | + public static function client(): ClientService{} | |
| 118 | 124 | |
| 119 | 125 | /** |
| 120 | 126 | * @return FileUploaderService |
| 121 | 127 | */ |
| 122 | - public static function fileUploader(){} | |
| 128 | + public static function fileUploader(): FileUploaderService{} | |
| 123 | 129 | |
| 124 | 130 | /** |
| 125 | - * @return Depicter\DataSources\Manager | |
| 131 | + * @return DataSources | |
| 126 | 132 | */ |
| 127 | - public static function dataSource(){} | |
| 133 | + public static function dataSource(): DataSources{} | |
| 128 | 134 | |
| 129 | 135 | /** |
| 130 | 136 | * @return ExportService |
| 131 | 137 | */ |
| 132 | - public static function exportService(){} | |
| 138 | + public static function exportService(): ExportService{} | |
| 133 | 139 | |
| 134 | 140 | /** |
| 135 | 141 | * @return ImportService |
| 136 | 142 | */ |
| 137 | - public static function importService(){} | |
| 143 | + public static function importService(): ImportService{} | |
| 138 | 144 | |
| 139 | 145 | /** |
| 140 | 146 | * @return Symbols |
| 141 | 147 | */ |
| 142 | - public static function symbolsProvider(){} | |
| 148 | + public static function symbolsProvider(): Symbols{} | |
| 143 | 149 | |
| 144 | 150 | /** |
| 145 | 151 | * @return AuthorizationService |
| 146 | 152 | */ |
| 147 | - public static function authorization(){} | |
| 153 | + public static function authorization(): AuthorizationService{} | |
| 154 | + | |
| 155 | + /** | |
| 156 | + * @return AuthenticationService | |
| 157 | + */ | |
| 158 | + public static function auth(): AuthenticationService {} | |
| 159 | + | |
| 160 | + /** | |
| 161 | + * @return Modules | |
| 162 | + */ | |
| 163 | + public static function modules(): Modules{} | |
| 164 | + | |
| 165 | + /** | |
| 166 | + * @return AIWizardService | |
| 167 | + */ | |
| 168 | + public static function AIWizard(): AIWizardService{} | |
| 169 | + | |
| 170 | + /** | |
| 171 | + * @return EditorData | |
| 172 | + */ | |
| 173 | + public static function editorData(): EditorData{} | |
| 148 | 174 | } |