-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathLocation.php
49 lines (42 loc) · 1.1 KB
/
Location.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
namespace IPStack\PHP;
use ExtendedArrays\ReadOnlyRestrictedAssociativeArray as ReadOnlyResAssocArr;
class Location extends ReadOnlyResAssocArr
{
/**
* Fillable properties of the object.
*
* @var array
*/
protected $fillable = [
// These properties are available on all
// IPStack plans.
'ip',
'type',
'continent_code',
'continent_name',
'country_code',
'country_name',
'region_code',
'region_name',
'city',
'zip',
'latitude',
'longitude',
'location',
// These properties require an API
// key with IPStack's Basic plan or higher.
// Free plans will not have access to them.
'time_zone',
'connection',
'currency',
// This property requires an API
// key with IPStack's Enterprise plan
// Other API keys will not have access to it.
'security',
// These properties are used when you are
// using the legacy FreeGeoIp binary.
'zip_code',
'metro_code',
];
}