| 1 | <?php |
||
| 5 | class AlgoliaConfig |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var string |
||
| 9 | */ |
||
| 10 | private $applicationId; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | private $apiKey; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var array|null |
||
| 19 | */ |
||
| 20 | private $hostsArray; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var array |
||
| 24 | */ |
||
| 25 | private $options; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Initiates a new AlgoliaConfig. |
||
| 29 | * |
||
| 30 | * @param string $applicationId The application ID you have in your admin interface |
||
| 31 | * @param string $apiKey A valid API key for the service |
||
| 32 | * @param null|array $hostsArray The list of hosts that you have received for the service |
||
| 33 | * @param array $options |
||
| 34 | */ |
||
| 35 | 34 | public function __construct($applicationId, $apiKey, $hostsArray = null, $options = []) |
|
| 42 | |||
| 43 | /** |
||
| 44 | * @return string |
||
| 45 | */ |
||
| 46 | 29 | public function getApplicationId() |
|
| 50 | |||
| 51 | /** |
||
| 52 | * @return string |
||
| 53 | */ |
||
| 54 | 29 | public function getApiKey() |
|
| 58 | |||
| 59 | /** |
||
| 60 | * @return array|null |
||
| 61 | */ |
||
| 62 | 29 | public function getHostsArray() |
|
| 66 | |||
| 67 | /** |
||
| 68 | * @return array |
||
| 69 | */ |
||
| 70 | 29 | public function getOptions() |
|
| 74 | } |
||
| 75 |