Total Complexity | 6 |
Total Lines | 70 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | trait RequestTrait |
||
20 | { |
||
21 | /** |
||
22 | * @param string $name |
||
23 | * @param string $value |
||
24 | * |
||
25 | * @throws ClientException |
||
26 | */ |
||
27 | 8 | public static function appendUserAgent($name, $value) |
|
33 | 4 | } |
|
34 | |||
35 | /** |
||
36 | * @param array $userAgent |
||
37 | */ |
||
38 | 2 | public static function withUserAgent(array $userAgent) |
|
41 | 2 | } |
|
42 | |||
43 | /** |
||
44 | * @param array $options |
||
45 | * |
||
46 | * @return RpcRequest |
||
47 | * @throws ClientException |
||
48 | * @deprecated |
||
49 | * @codeCoverageIgnore |
||
50 | */ |
||
51 | public static function rpcRequest(array $options = []) |
||
52 | { |
||
53 | return self::rpc($options); |
||
54 | } |
||
55 | |||
56 | /** |
||
57 | * @param array $options |
||
58 | * |
||
59 | * @return RpcRequest |
||
60 | * @throws ClientException |
||
61 | */ |
||
62 | 39 | public static function rpc(array $options = []) |
|
65 | } |
||
66 | |||
67 | /** |
||
68 | * @param array $options |
||
69 | * |
||
70 | * @return RoaRequest |
||
71 | * @throws ClientException |
||
72 | * @deprecated |
||
73 | * @codeCoverageIgnore |
||
74 | */ |
||
75 | public static function roaRequest(array $options = []) |
||
76 | { |
||
77 | return self::roa($options); |
||
78 | } |
||
79 | |||
80 | /** |
||
81 | * @param array $options |
||
82 | * |
||
83 | * @return RoaRequest |
||
84 | * @throws ClientException |
||
85 | */ |
||
86 | 6 | public static function roa(array $options = []) |
|
89 | } |
||
90 | } |
||
91 |