\CLSASC\EquivalentTimeEvent

Handle the Pool Length Parameters. Creates a PoolMeasFlag

Summary

Methods
Properties
Constants
isAllowed()
distance()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

isAllowed()

isAllowed(string  $spl, string  $event) : boolean

Function to let you know if the event is allowed in the pool

Parameters

string $spl

the length of the source pool, ie "50m", "20m", "33 1/3m"

string $event

the name of the event, ie "50 Free", "200 IM"

Returns

boolean —

true if event is allowed in pool, false otherwise

distance()

distance(string  $event) : integer

Get the distance for the event

Parameters

string $event

the name of the event, ie "1500 Free"

Throws

\CLSASC\EquivalentTime\IllegalEventException

if the event is invalid

Returns

integer —

the distance of the event, ie 1500