CoreFiles by mySites.guru
DiscoveryStrategy.php22 lines, 674 bytes, from wordpress-7.1.zip
Raw History Compare with 7.0.9
md5
fcfa8281ba47e9754986695e121f4b70
sha1
5c6ac7cc04e00dc9e4fb9063f44d2ec716e417dd
sha256
998c30e106a6beb9ff10ae6d6e172a8f541296c3d9fd2babadd6fc2ba5400b92
<?php

namespace WordPress\AiClientDependencies\Http\Discovery\Strategy;

use WordPress\AiClientDependencies\Http\Discovery\Exception\StrategyUnavailableException;
/**
 * @author Tobias Nyholm <[email protected]>
 */
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);
}

The same content is in 44 releases, WordPress 7.0-beta1 to 7.2-RC2. See them all, or every version of this file.