Documentation

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

$eventId

private int $eventId

$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
$eventId : int
$originTimeUTC : DateTime|null = null
$location : Location|null = null
$magnitude : Magnitude|null = null
$epicenter : Epicenter|null = null
$author : Author|null = null

__destruct()

public __destruct() : mixed

__toString()

Returns quake details

public __toString() : string
Return values
string

Quake details: eventId, originTimeUTC, magnitude, epicenter, location

eventId()

Get event ID

public eventId() : int
Return values
int

Event ID

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


        
On this page

Search results