Debian Codegraph @

lib/3rdParty/composer/php-http/discovery/src/Strategy/DiscoveryStrategy.php

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