Location
class Location extends LatLng
Class Location
Properties
protected array | $typeCheck | from LatLng | |
protected array | $required | from AbstractObject | |
protected array | $errors | from AbstractObject | |
protected float | $lat | from LatLng | |
protected float | $lng | from LatLng |
Methods
Details
in AbstractObject at line 43
__construct(array|null $args = [])
AbstractObject constructor.
in AbstractObject at line 58
protected
setArgs(array $args)
in AbstractObject at line 78
protected bool
isFieldRequired(string $field_name)
in AbstractObject at line 89
protected array
addError(string $error)
in AbstractObject at line 103
protected mixed
parseFieldValue(string $field_type, string $field_value)
in AbstractObject at line 121
protected
throwErrors()
in AbstractObject at line 132
string
toJson()
in AbstractObject at line 141
array
toArray()
in LatLng at line 46
string
__toString()
in AbstractObject at line 171
mixed
__call($name, $arguments)
in LatLng at line 60
string
getLat()
Return the latitude, 0 if null
in LatLng at line 71
string
getLng()
Return the longitude, 0 if null