Documentation

EventType
in package

Data structure to handle Event Type

Tags
link

QuakeML Documentation

@return

true, if every check is passed, false otherwise

Table of Contents

Properties

$name  : name
$validTypes  : valid

Methods

__construct()  : mixed
__destruct()  : mixed
__toString()  : string
Returns location
equals()  : bool
Compare two objects
isDeleted()  : bool
Check if is an entry no more exists (is deleted)
isEarthquake()  : bool
Check if is an earthquake (or not set, because same FDSN service dont set event type)
name()  : string
Fetch event type name
isValid()  : bool
Check if is an entry no more exists (is deleted)

Properties

$validTypes

private valid $validTypes = array('not existing', 'not reported', 'earthquake', 'anthropogenic event', 'collapse', 'cavity collapse', 'mine collapse', 'building collapse', 'explosion', 'accidental explosion', 'chemical explosion', 'controlled explosion', 'experimental explosion', 'industrial explosion', 'mining explosion', 'quarry blast', 'road cut', 'blasting levee', 'nuclear explosion', 'induced or triggered event', 'rock burst', 'reservoir loading', 'fluid injection', 'fluid extraction', 'crash', 'plane crash', 'train crash', 'boat crash', 'other event', 'atmospheric event', 'sonic boom', 'sonic blast', 'acoustic noise', 'thunder', 'avalanche', 'snow avalanche', 'debris avalanche', 'hydroacoustic event', 'ice quake', 'slide', 'landslide', 'rockslide', 'meteorite', 'volcanic eruption')

event type get from QuakeML documentation

Methods

__construct()

public __construct(string $name) : mixed
Parameters
$name : string

__toString()

Returns location

public __toString() : string
Return values
string

Location name

equals()

Compare two objects

public equals(self $other) : bool
Parameters
$other : self
Return values
bool

true are equals, false otherwise

isDeleted()

Check if is an entry no more exists (is deleted)

public isDeleted() : bool
Return values
bool

true if an entry is deleted , false otherwise

isEarthquake()

Check if is an earthquake (or not set, because same FDSN service dont set event type)

public isEarthquake() : bool
Return values
bool

true is an earthquake, false otherwise

name()

Fetch event type name

public name() : string
Return values
string

name of event type

isValid()

Check if is an entry no more exists (is deleted)

private isValid(string $name) : bool
Parameters
$name : string
Return values
bool

true if an entry is deleted , false otherwise


        
On this page

Search results