1 | <?php |
||
11 | abstract class AbstractMethodPlugin extends AbstractClient implements MethodPluginInterface |
||
12 | { |
||
13 | /** |
||
14 | * The endpoint. |
||
15 | * |
||
16 | * @var string |
||
17 | */ |
||
18 | private $endpoint = ''; |
||
19 | |||
20 | /** |
||
21 | * The parameters. |
||
22 | * |
||
23 | * @var array |
||
24 | */ |
||
25 | private $parameters = []; |
||
26 | |||
27 | /** |
||
28 | * {@inheritdoc} |
||
29 | */ |
||
30 | public function request() :ResponseInterface |
||
58 | |||
59 | /** |
||
60 | * {@inheritdoc} |
||
61 | */ |
||
62 | public function withEndPoint(string $endpoint) :MethodPluginInterface |
||
69 | |||
70 | /** |
||
71 | * {@inheritdoc} |
||
72 | */ |
||
73 | public function getEndPoint() :string |
||
77 | |||
78 | /** |
||
79 | * {@inheritdoc} |
||
80 | */ |
||
81 | public function withParameters(array $parameters) :MethodPluginInterface |
||
88 | |||
89 | /** |
||
90 | * {@inheritdoc} |
||
91 | */ |
||
92 | public function getParameters() :array |
||
96 | |||
97 | /** |
||
98 | * {@inheritdoc} |
||
99 | */ |
||
100 | public function getMethod() :string |
||
104 | } |
||
105 |