File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,11 @@ abstract class Client extends \BaseClient {
6
6
protected ?array $ parameters = null ;
7
7
private static array $ uri_cache = [];
8
8
abstract protected function getServiceName (): string ;
9
+ /**
10
+ * served as url inc rpc server
11
+ * @return string
12
+ */
13
+ abstract protected function getMethodName (): string ;
9
14
public function setParameters ($ parameters ): Client {
10
15
if (! is_array ($ parameters ) && ! is_object ($ parameters )) {
11
16
throw new \Exception ('Only accept array or object ' );
@@ -23,9 +28,6 @@ protected function getExceptionName(): array {
23
28
protected function getParameters (): ?array {
24
29
return $ this ->parameters ;
25
30
}
26
- protected function getMethodName (): string {
27
- return 'POST ' ;
28
- }
29
31
protected function getVersion (): int {
30
32
return 1 ;
31
33
}
You can’t perform that action at this time.
0 commit comments