1 | <?php |
||
21 | trait ParameterTrait |
||
22 | { |
||
23 | use ParamsTrait; |
||
24 | |||
25 | /** |
||
26 | * Assign adapter parameters. |
||
27 | * |
||
28 | * @param array $parameters |
||
29 | * |
||
30 | * @throws AdapterException |
||
31 | */ |
||
32 | protected function assignParameters(array $parameters = []) |
||
48 | |||
49 | /** |
||
50 | * Get the list of defined parameters. |
||
51 | * |
||
52 | * @return array |
||
53 | */ |
||
54 | abstract protected function getDefinedParameters(); |
||
55 | |||
56 | /** |
||
57 | * Get the list of default parameters. |
||
58 | * |
||
59 | * @return array |
||
60 | */ |
||
61 | protected function getDefaultParameters() |
||
65 | |||
66 | /** |
||
67 | * Get the list of required parameters. |
||
68 | * |
||
69 | * @return array |
||
70 | */ |
||
71 | abstract protected function getRequiredParameters(); |
||
72 | } |
||
73 |