WordPress\AiClientDependencies\Http\Discovery\Strategy
CommonClassesStrategy::getCandidates
Method of the class: CommonClassesStrategy{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = CommonClassesStrategy::getCandidates( $type );
- $type(required)
- .
CommonClassesStrategy::getCandidates() CommonClassesStrategy::getCandidates code WP 7.0
public static function getCandidates($type)
{
if (Psr18Client::class === $type) {
return self::getPsr18Candidates();
}
return self::$classes[$type] ?? [];
}