Skip to content

Commit 9c4e624

Browse files
committed
make method getMethodName() abstract
1 parent 1b6831a commit 9c4e624

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Diff for: src/Client.php

+5-3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ abstract class Client extends \BaseClient {
66
protected ?array $parameters = null;
77
private static array $uri_cache = [];
88
abstract protected function getServiceName(): string;
9+
/**
10+
* served as url inc rpc server
11+
* @return string
12+
*/
13+
abstract protected function getMethodName(): string;
914
public function setParameters($parameters): Client {
1015
if (! is_array($parameters) && ! is_object($parameters)) {
1116
throw new \Exception('Only accept array or object');
@@ -23,9 +28,6 @@ protected function getExceptionName(): array {
2328
protected function getParameters(): ?array {
2429
return $this->parameters;
2530
}
26-
protected function getMethodName(): string {
27-
return 'POST';
28-
}
2931
protected function getVersion(): int {
3032
return 1;
3133
}

0 commit comments

Comments
 (0)