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

__construct(array|null $args = [])

AbstractObject constructor.

setArgs(array $args)

No description

bool
isFieldRequired(string $field_name)

No description

array
addError(string $error)

No description

mixed
parseFieldValue(string $field_type, string $field_value)

No description

throwErrors()

No description

string
toJson()

No description

array
toArray()

No description

string
__toString()

No description

from LatLng
mixed
__call($name, $arguments)

No description

string
getLat()

Return the latitude, 0 if null

from LatLng
string
getLng()

Return the longitude, 0 if null

from LatLng
LatLng
setLat($args)

No description

from LatLng
LatLng
setLng($args)

No description

from LatLng

Details

in AbstractObject at line 43
__construct(array|null $args = [])

AbstractObject constructor.

Parameters

array|null $args

in AbstractObject at line 58
protected setArgs(array $args)

Parameters

array $args

Exceptions

Exception

in AbstractObject at line 78
protected bool isFieldRequired(string $field_name)

Parameters

string $field_name

Return Value

bool

in AbstractObject at line 89
protected array addError(string $error)

Parameters

string $error

Return Value

array

in AbstractObject at line 103
protected mixed parseFieldValue(string $field_type, string $field_value)

Parameters

string $field_type
string $field_value

Return Value

mixed

in AbstractObject at line 121
protected throwErrors()

Exceptions

Exception

in AbstractObject at line 132
string toJson()

Return Value

string

in AbstractObject at line 141
array toArray()

Return Value

array

in LatLng at line 46
string __toString()

Return Value

string

in AbstractObject at line 171
mixed __call($name, $arguments)

Parameters

$name
$arguments

Return Value

mixed

in LatLng at line 60
string getLat()

Return the latitude, 0 if null

Return Value

string

in LatLng at line 71
string getLng()

Return the longitude, 0 if null

Return Value

string

in LatLng at line 22
LatLng setLat($args)

Parameters

$args

Return Value

LatLng

in LatLng at line 22
LatLng setLng($args)

Parameters

$args

Return Value

LatLng