1 | <?php |
||
7 | abstract class AbstractMethodPlugin extends AbstractClient implements MethodPluginInterface |
||
8 | { |
||
9 | /** |
||
10 | * The endpoint. |
||
11 | * |
||
12 | * @var string |
||
13 | */ |
||
14 | private $endpoint; |
||
15 | |||
16 | /** |
||
17 | * The parameters. |
||
18 | * |
||
19 | * @var array |
||
20 | */ |
||
21 | private $parameters = []; |
||
22 | |||
23 | /** |
||
24 | * {@inheritdoc} |
||
25 | */ |
||
26 | public function call() |
||
54 | |||
55 | /** |
||
56 | * {@inheritdoc} |
||
57 | */ |
||
58 | public function withEndPoint(string $endpoint) |
||
65 | |||
66 | /** |
||
67 | * {@inheritdoc} |
||
68 | */ |
||
69 | public function getEndPoint() |
||
73 | |||
74 | /** |
||
75 | * {@inheritdoc} |
||
76 | */ |
||
77 | public function withApiKey(string $apikey) |
||
86 | |||
87 | /** |
||
88 | * {@inheritdoc} |
||
89 | */ |
||
90 | public function withParameters(array $parameters) |
||
97 | |||
98 | /** |
||
99 | * {@inheritdoc} |
||
100 | */ |
||
101 | public function getParameters() |
||
105 | |||
106 | /** |
||
107 | * {@inheritdoc} |
||
108 | */ |
||
109 | public function getMethod() |
||
113 | } |
||
114 |