[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/php-ai-client/third-party/Http/Discovery/Strategy/ -> DiscoveryStrategy.php (source)

   1  <?php
   2  
   3  namespace WordPress\AiClientDependencies\Http\Discovery\Strategy;
   4  
   5  use WordPress\AiClientDependencies\Http\Discovery\Exception\StrategyUnavailableException;
   6  /**
   7   * @author Tobias Nyholm <tobias.nyholm@gmail.com>
   8   */
   9  interface DiscoveryStrategy
  10  {
  11      /**
  12       * Find a resource of a specific type.
  13       *
  14       * @param string $type
  15       *
  16       * @return array The return value is always an array with zero or more elements. Each
  17       *               element is an array with two keys ['class' => string, 'condition' => mixed].
  18       *
  19       * @throws StrategyUnavailableException if we cannot use this strategy
  20       */
  21      public static function getCandidates($type);
  22  }


Generated : Sat Jun 13 09:38:55 2026 Cross-referenced by PHPXref