1 | <?php |
||
7 | abstract class MethodPluginBase implements MethodPluginInterface { |
||
8 | |||
9 | /** |
||
10 | * The method name. |
||
11 | */ |
||
12 | const METHOD = 'BASE'; |
||
13 | |||
14 | /** |
||
15 | * The parameters. |
||
16 | * |
||
17 | * @var array |
||
18 | */ |
||
19 | protected $parameters; |
||
20 | |||
21 | /** |
||
22 | * The API Key. |
||
23 | * |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $apiKey; |
||
27 | |||
28 | /** |
||
29 | * The API Version. |
||
30 | * |
||
31 | * @var int |
||
32 | */ |
||
33 | protected $apiVersion; |
||
34 | |||
35 | /** |
||
36 | * {@inheritdoc} |
||
37 | */ |
||
38 | 24 | public function getMethod() { |
|
41 | |||
42 | /** |
||
43 | * {@inheritdoc} |
||
44 | */ |
||
45 | 24 | public function setParameters(array $parameters = array()) { |
|
50 | |||
51 | /** |
||
52 | * {@inheritdoc} |
||
53 | */ |
||
54 | 12 | public function getDefaultParameters() { |
|
57 | |||
58 | /** |
||
59 | * {@inheritdoc} |
||
60 | */ |
||
61 | 24 | public function getParameters() { |
|
90 | |||
91 | /** |
||
92 | * Get a random ID. |
||
93 | * |
||
94 | * @return int |
||
95 | */ |
||
96 | 12 | public function getRandomId() { |
|
99 | |||
100 | /** |
||
101 | * {@inheritdoc} |
||
102 | */ |
||
103 | 12 | public function setApiVersion($apiVersion) { |
|
108 | |||
109 | /** |
||
110 | * {@inheritdoc} |
||
111 | */ |
||
112 | 12 | public function getApiVersion() { |
|
115 | |||
116 | /** |
||
117 | * {@inheritdoc} |
||
118 | */ |
||
119 | 13 | public function getResult(ResponseInterface $response) { |
|
124 | |||
125 | } |
||
126 |