WordPress\AiClient\Providers\Contracts

ProviderAvailabilityInterface{}interfaceWP 0.1.0

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

Методы

  1. public isConfigured()

Список изменений

С версии 0.1.0 Введена.

Код 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;
}