-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOptionsAdapterInterface.php
More file actions
37 lines (31 loc) · 1.01 KB
/
OptionsAdapterInterface.php
File metadata and controls
37 lines (31 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
declare(strict_types=1);
namespace n5s\HttpCli;
/**
* Interface for transforming library-specific options TO unified RequestOptions
*/
interface OptionsAdapterInterface
{
/**
* Transform library-specific options to unified RequestOptions
*
* @param array<string, mixed> $libraryOptions Library-specific options array
* @return RequestOptions Unified request options
* @throws UnsupportedFeatureException When an option is not supported or recognized
*/
public function transform(array $libraryOptions): RequestOptions;
/**
* Get the name of the source library this adapter supports
*/
public function getSourceLibrary(): string;
/**
* Check if a specific library option is supported by this adapter
*/
public function supportsOption(string $optionName): bool;
/**
* Get all supported options for this library
*
* @return list<string> List of supported option names
*/
public function getSupportedOptions(): array;
}