WordPress\AiClientDependencies\Http\Discovery\Strategy

CommonClassesStrategy::getCandidatespublic staticWP 1.0

Method of the class: CommonClassesStrategy{}

No Hooks.

Returns

null. Nothing (null).

Usage

$result = CommonClassesStrategy::getCandidates( $type );
$type(required)
.

CommonClassesStrategy::getCandidates() code WP 7.0

public static function getCandidates($type)
{
    if (Psr18Client::class === $type) {
        return self::getPsr18Candidates();
    }
    return self::$classes[$type] ?? [];
}