Quake
in package
Get quake details
Table of Contents
Constants
- curlCloceLatestPhpVersion : mixed = 7
- templateUrl : mixed = 'https://emidius.mi.ingv.it/services/macroseism...
- validResponseLines : mixed = 2
Properties
- $curlErrInfo : string
- $curlErrNum : int
- $details : array<string|int, mixed>
- $quakeId : QuakeId
Methods
- __construct() : mixed
- curlErrorInfo() : string
- curlErrorNumber() : int
- details() : array<string|int, mixed>
- fetch() : int
- Get quake epicentral details
- isCurlCloseSupported() : bool
- Check if curl_close is still supported
Constants
curlCloceLatestPhpVersion
private
mixed
curlCloceLatestPhpVersion
= 7
templateUrl
private
mixed
templateUrl
= 'https://emidius.mi.ingv.it/services/macroseismic/query?eventid=%s&format=text'
validResponseLines
private
mixed
validResponseLines
= 2
Properties
$curlErrInfo
private
string
$curlErrInfo
= ''
$curlErrNum
private
int
$curlErrNum
= 0
$details
private
array<string|int, mixed>
$details
= array()
$quakeId
private
QuakeId
$quakeId
Methods
__construct()
public
__construct(QuakeId $quakeId) : mixed
Parameters
- $quakeId : QuakeId
curlErrorInfo()
public
curlErrorInfo() : string
Return values
stringcurlErrorNumber()
public
curlErrorNumber() : int
Return values
intdetails()
public
details() : array<string|int, mixed>
Return values
array<string|int, mixed>fetch()
Get quake epicentral details
public
fetch() : int
Return values
int —found lines
isCurlCloseSupported()
Check if curl_close is still supported
private
isCurlCloseSupported() : bool
Return values
bool —true is supported, false otherwise