1 | <?php |
||
7 | class ApiConfiguration extends AbstractConfigurableElement |
||
8 | { |
||
9 | |||
10 | /** |
||
11 | * The key for the API |
||
12 | */ |
||
13 | public $key; |
||
14 | |||
15 | /** |
||
16 | * The API secret |
||
17 | */ |
||
18 | public $secret; |
||
19 | |||
20 | /** |
||
21 | * A flag for if the API is enabled. By default it is not. |
||
22 | */ |
||
23 | |||
24 | public $enabled = false; |
||
25 | |||
26 | /** |
||
27 | * The base hostname for API calls. |
||
28 | */ |
||
29 | |||
30 | public $apiHostname = 'magiumlib.com'; |
||
31 | |||
32 | /** |
||
33 | * @return mixed |
||
34 | */ |
||
35 | public function getApiHostname() |
||
39 | |||
40 | /** |
||
41 | * @param mixed $apiHostname |
||
42 | */ |
||
43 | public function setApiHostname($apiHostname) |
||
47 | |||
48 | /** |
||
49 | * @return mixed |
||
50 | */ |
||
51 | public function getEnabled() |
||
55 | |||
56 | /** |
||
57 | * @param mixed $enabled |
||
58 | */ |
||
59 | public function setEnabled($enabled) |
||
63 | |||
64 | /** |
||
65 | * @return mixed |
||
66 | */ |
||
67 | public function getKey() |
||
71 | |||
72 | /** |
||
73 | * @param mixed $key |
||
74 | */ |
||
75 | public function setKey($key) |
||
79 | |||
80 | /** |
||
81 | * @return mixed |
||
82 | */ |
||
83 | public function getSecret() |
||
87 | |||
88 | /** |
||
89 | * @param mixed $secret |
||
90 | */ |
||
91 | public function setSecret($secret) |
||
95 | |||
96 | |||
97 | |||
98 | } |