Quake
in package
Data structure to handle information about earthquakes This object must be instantiated only with quake data
Table of Contents
Properties
- $author : Author
- $epicenter : Epicenter
- $eventId : int
- $location : Location
- $magnitude : Magnitude
- $originTimeUTC : DateTime
Methods
- __construct() : mixed
- __destruct() : mixed
- __toString() : string
- Returns quake details
- author() : Author
- Get author
- epicenter() : Epicenter
- Get epicenter
- eventId() : int
- Get event ID
- location() : Location
- Get location
- magnitude() : Magnitude
- Get magnitude
- originTimeUTC() : int
- Get UTC origin time
- originTimeUTCISO8601() : int
- Get UTC origin time
Properties
$author
private
Author
$author
$epicenter
private
Epicenter
$epicenter
$eventId
private
int
$eventId
$location
private
Location
$location
$magnitude
private
Magnitude
$magnitude
$originTimeUTC
private
DateTime
$originTimeUTC
Methods
__construct()
public
__construct(int $eventId[, DateTime|null $originTimeUTC = null ][, Location|null $location = null ][, Magnitude|null $magnitude = null ][, Epicenter|null $epicenter = null ][, Author|null $author = null ]) : mixed
Parameters
__destruct()
public
__destruct() : mixed
__toString()
Returns quake details
public
__toString() : string
Return values
string —Quake details: eventId, originTimeUTC, magnitude, epicenter, location
author()
Get author
public
author() : Author
Return values
Author —Author obj
epicenter()
Get epicenter
public
epicenter() : Epicenter
Return values
Epicenter —Epicenter obj
eventId()
Get event ID
public
eventId() : int
Return values
int —Event ID
location()
Get location
public
location() : Location
Return values
Location —Location obj
magnitude()
Get magnitude
public
magnitude() : Magnitude
Return values
Magnitude —Magnitude obj
originTimeUTC()
Get UTC origin time
public
originTimeUTC() : int
Return values
int —UTC Origin time in YYYY-mm-ddTHH:mm:ss
originTimeUTCISO8601()
Get UTC origin time
public
originTimeUTCISO8601() : int
Return values
int —UTC Origin time in YYYY-mm-ddTHH:mm:ss