| Total Complexity | 4 | 
| Total Lines | 50 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 8 | class IdentifierResolver | ||
| 9 | { | ||
| 10 | /** | ||
| 11 | * List of available Identifiers. | ||
| 12 | * | ||
| 13 | * @var array | ||
| 14 | */ | ||
| 15 | protected $identifiers = [ | ||
| 16 | Identifiers\BioRxiv::class, | ||
| 17 | Identifiers\Figshare::class, | ||
| 18 | Identifiers\Doi::class, | ||
| 19 | Identifiers\Arxiv::class, | ||
| 20 | Identifiers\Pubmed::class, | ||
| 21 | ]; | ||
| 22 | |||
| 23 | /** | ||
| 24 | * The query string. | ||
| 25 | * | ||
| 26 | * @var string | ||
| 27 | */ | ||
| 28 | private $queryString; | ||
| 29 | |||
| 30 | /** | ||
| 31 | * Identifier constructor. | ||
| 32 | * | ||
| 33 | * @param string $queryString | ||
| 34 | */ | ||
| 35 | public function __construct(string $queryString) | ||
| 38 | } | ||
| 39 | |||
| 40 | /** | ||
| 41 | * Resolves the Identifier;. | ||
| 42 | * | ||
| 43 | * @return Identifiers\Identifier | ||
| 44 | * | ||
| 45 | * @throws UnknownIdentifierException | ||
| 46 | */ | ||
| 47 | public function handle(): Identifier | ||
| 60 |