WordPress\AiClientDependencies\Http\Discovery\Strategy

DiscoveryStrategy{}interfaceWP 1.0

No Hooks.

Usage

$DiscoveryStrategy = new DiscoveryStrategy();
// use class methods

Methods

  1. public static getCandidates($type)

DiscoveryStrategy{} code WP 7.0

interface DiscoveryStrategy
{
    /**
     * Find a resource of a specific type.
     *
     * @param string $type
     *
     * @return array The return value is always an array with zero or more elements. Each
     *               element is an array with two keys ['class' => string, 'condition' => mixed].
     *
     * @throws StrategyUnavailableException if we cannot use this strategy
     */
    public static function getCandidates($type);
}