1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace DominionEnterprises\NetAcuity\Databases; |
4
|
|
|
|
5
|
|
|
use GuzzleHttp\ClientInterface; |
6
|
|
|
|
7
|
|
|
/** |
8
|
|
|
* Formats and returns our expected data set according to the Net Acuity Edge type database. |
9
|
|
|
*/ |
10
|
|
|
final class EdgeDatabase extends AbstractNetAcuityDatabase |
11
|
|
|
{ |
12
|
|
|
/** |
13
|
|
|
* EdgeDatabase constructor. |
14
|
|
|
* |
15
|
|
|
* @param ClientInterface $client The injected GuzzleHttp Client. |
16
|
|
|
* @param string $apiUserToken The Net Acuity API User Token. |
17
|
|
|
*/ |
18
|
|
|
public function __construct(ClientInterface $client, string $apiUserToken) |
19
|
|
|
{ |
20
|
|
|
parent::__construct($client, $apiUserToken); |
21
|
|
|
|
22
|
|
|
$this->_databaseIdentifier = 4; |
23
|
|
|
|
24
|
|
|
$this->_translations = [ |
25
|
|
|
'area-code' => 'edge-area-codes', |
26
|
|
|
'city' => 'edge-city', |
27
|
|
|
'city-code' => 'edge-city-code', |
28
|
|
|
'city-conf' => 'edge-city-conf', |
29
|
|
|
'conn-speed' => 'edge-conn-speed', |
30
|
|
|
'continent-code' => 'edge-continent-code', |
31
|
|
|
'country' => 'edge-country', |
32
|
|
|
'country-code' => 'edge-country-code', |
33
|
|
|
'country-conf' => 'edge-country-conf', |
34
|
|
|
'gmt-offset' => 'edge-gmt-offset', |
35
|
|
|
'in-dist' => 'edge-in-dst', |
36
|
|
|
'latitude' => 'edge-latitude', |
37
|
|
|
'longitude' => 'edge-longitude', |
38
|
|
|
'metro-code' => 'edge-metro-code', |
39
|
|
|
'postal-conf' => 'edge-postal-conf', |
40
|
|
|
'region' => 'edge-region', |
41
|
|
|
'region-code' => 'edge-region-code', |
42
|
|
|
'region-conf' => 'edge-region-conf', |
43
|
|
|
'timezone-name' => 'edge-timezone-name', |
44
|
|
|
'two-letter-country' => 'edge-two-letter-country', |
45
|
|
|
'zip-code' => 'edge-postal-code', |
46
|
|
|
]; |
47
|
|
|
} |
48
|
|
|
} |
49
|
|
|
|