WordPress\AiClient\Providers\Contracts
ProviderAvailabilityInterface{}
Interface for checking provider availability.
Determines whether a provider is configured and available for use based on API keys, credentials, or other requirements.
Хуков нет.
Использование
$ProviderAvailabilityInterface = new ProviderAvailabilityInterface(); // use class methods
Методы
- public isConfigured()
Список изменений
| С версии 0.1.0 | Введена. |
Код ProviderAvailabilityInterface{} ProviderAvailabilityInterface{} WP 7.0
interface ProviderAvailabilityInterface
{
/**
* Checks if the provider is configured.
*
* @since 0.1.0
*
* @return bool True if the provider is configured and available, false otherwise.
*/
public function isConfigured(): bool;
}