Radius
in package
Data structure to handle Latitude,Longitude point
Tags
Table of Contents
Properties
- $validRadius : mixed
- $value : float
Methods
- __construct() : mixed
- __destruct() : mixed
- __toString() : mixed
- value() : float
- Get radius value
- isValid() : bool
- Check radius validity
Properties
$validRadius
private
mixed
$validRadius
= array('min' => 0, 'max' => 180)
$value
private
float
$value
Methods
__construct()
public
__construct(float $value) : mixed
Parameters
- $value : float
__destruct()
public
__destruct() : mixed
__toString()
public
__toString() : mixed
value()
Get radius value
public
value() : float
Return values
float —radius
isValid()
Check radius validity
private
isValid(float $value) : bool
Parameters
- $value : float
Return values
bool —True if is valid, false otherwise