1 | <?php |
||
11 | class IpAddress extends Model |
||
12 | { |
||
13 | /** @var int */ |
||
14 | protected $id; |
||
15 | |||
16 | /** @var string */ |
||
17 | protected $ipStart; |
||
18 | |||
19 | /** @var string */ |
||
20 | protected $ipEnd; |
||
21 | |||
22 | /** @var string */ |
||
23 | protected $country; |
||
24 | |||
25 | /** @var string */ |
||
26 | protected $stateProv; |
||
27 | |||
28 | /** @var string */ |
||
29 | protected $city; |
||
30 | |||
31 | /** @var float */ |
||
32 | protected $lat; |
||
33 | |||
34 | /** @var float */ |
||
35 | protected $lng; |
||
36 | |||
37 | /** @var string */ |
||
38 | protected $timeZoneOffset; |
||
39 | |||
40 | /** @var string */ |
||
41 | protected $timeZoneName; |
||
42 | |||
43 | /** @var string */ |
||
44 | protected $ispName; |
||
45 | |||
46 | /** @var string */ |
||
47 | protected $connectionType; |
||
48 | |||
49 | /** @var string */ |
||
50 | protected $type; |
||
51 | |||
52 | /** @var string */ |
||
53 | protected $requiredIp; |
||
54 | |||
55 | /** |
||
56 | * parse |
||
57 | * |
||
58 | * @param array $data |
||
59 | * @author Tiago Araujo <[email protected]> |
||
60 | */ |
||
61 | 2 | public function parse(array $data) |
|
78 | |||
79 | /** |
||
80 | * toArray |
||
81 | * |
||
82 | * @return array |
||
83 | * @author Tiago Araujo <[email protected]> |
||
84 | */ |
||
85 | public function toArray(): array |
||
104 | |||
105 | /** |
||
106 | * @return int |
||
107 | */ |
||
108 | public function getId(): int |
||
112 | |||
113 | /** |
||
114 | * @return string |
||
115 | */ |
||
116 | public function getIpStart(): string |
||
120 | |||
121 | /** |
||
122 | * @return string |
||
123 | */ |
||
124 | public function getIpEnd(): string |
||
128 | |||
129 | /** |
||
130 | * @return string |
||
131 | */ |
||
132 | public function getCountry(): string |
||
136 | |||
137 | /** |
||
138 | * @return string |
||
139 | */ |
||
140 | public function getStateProv(): string |
||
144 | |||
145 | /** |
||
146 | * @return string |
||
147 | */ |
||
148 | public function getCity(): string |
||
152 | |||
153 | /** |
||
154 | * @return float |
||
155 | */ |
||
156 | public function getLat(): float |
||
160 | |||
161 | /** |
||
162 | * @return float |
||
163 | */ |
||
164 | public function getLng(): float |
||
168 | |||
169 | /** |
||
170 | * @return string |
||
171 | */ |
||
172 | public function getTimeZoneOffset(): string |
||
176 | |||
177 | /** |
||
178 | * @return string |
||
179 | */ |
||
180 | public function getTimeZoneName(): string |
||
184 | |||
185 | /** |
||
186 | * @return string |
||
187 | */ |
||
188 | public function getIspName(): string |
||
192 | |||
193 | /** |
||
194 | * @return string |
||
195 | */ |
||
196 | public function getConnectionType(): string |
||
200 | |||
201 | /** |
||
202 | * @return string |
||
203 | */ |
||
204 | public function getType(): string |
||
208 | |||
209 | /** |
||
210 | * @return string |
||
211 | */ |
||
212 | public function getRequiredIp(): string |
||
216 | |||
217 | } |