\CLSASC\EquivalentTimeTurns

Get the turns per hundred

Summary

Methods
Properties
Constants
perHundred()
getFactor()
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

perHundred()

perHundred(string  $source_pool_length) : integer

Returns the number of turns per hundred in a pool

Parameters

string $source_pool_length

the source pool length, ie "50m", "25y"

Throws

\CLSASC\EquivalentTime\UndefinedPoolLengthException

if the source pool length or requested conversion length does not exist

Returns

integer —

the number of turns per hundred

getFactor()

getFactor(string  $event) : double

Get the turn factor, the key ingredient in conversions

Parameters

string $event

The event name, ie "400 IM"

Throws

\CLSASC\EquivalentTime\IllegalEventException

if the event was not recognised or is not allowed

Returns

double —

turn factor