LatLng
class LatLng extends AbstractObject
Class LatLng
Properties
protected array | $typeCheck | ||
protected array | $required | from AbstractObject | |
protected array | $errors | from AbstractObject | |
protected float | $lat | ||
protected float | $lng |
Methods
string
__toString()
No description
string
getLat()
Return the latitude, 0 if null
string
getLng()
Return the longitude, 0 if null
LatLng
setLat($args)
No description
LatLng
setLng($args)
No description
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()
at line 46
string
__toString()
in AbstractObject at line 171
mixed
__call($name, $arguments)
at line 60
string
getLat()
Return the latitude, 0 if null
at line 71
string
getLng()
Return the longitude, 0 if null