PHP Interface Treffynnon\Navigator\Distance\Converter\ConverterInterface

Exibir arquivo Open project: treffynnon/navigator

Public Methods

Method Description
c ( float $distance ) : float Convert the distance
convert ( $distance ) : mixed Convert the supplied value using factor
r ( float $distance ) : float Reverse the distance conversion
reverse ( $distance ) : mixed Convert the supplied value by reversing the factor

Method Details

c() public method

Convert the distance
public c ( float $distance ) : float
$distance float
return float

convert() public method

Convert the supplied value using factor
public convert ( $distance ) : mixed
return mixed Converted value

r() public method

Reverse the distance conversion
public r ( float $distance ) : float
$distance float
return float

reverse() public method

Convert the supplied value by reversing the factor
public reverse ( $distance ) : mixed
return mixed Reversed value