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