ParsePolygon
in package
implements
Encodable
ParsePolygon - Representation of a Parse Polygon object.
Tags
Interfaces, Classes and Traits
- Encodable
- Class Encodable - Interface for Parse Classes which provide an encode method.
Table of Contents
- $coordinates : array<string|int, mixed>
- The coordinates.
- __construct() : mixed
- Create a Parse Polygon object.
- _encode() : array<string|int, mixed>
- Encode to associative array representation.
- getCoordinates() : array<string|int, mixed>
- Returns the Coordinates value for this Polygon.
- setCoordinates() : mixed
- Set the Coordinates value for this Polygon.
Properties
$coordinates
The coordinates.
private
array<string|int, mixed>
$coordinates
Methods
__construct()
Create a Parse Polygon object.
public
__construct(array<string|int, mixed> $coords) : mixed
Parameters
- $coords : array<string|int, mixed>
-
GeoPoints or Coordinates.
Return values
mixed —_encode()
Encode to associative array representation.
public
_encode() : array<string|int, mixed>
Return values
array<string|int, mixed> —getCoordinates()
Returns the Coordinates value for this Polygon.
public
getCoordinates() : array<string|int, mixed>
Return values
array<string|int, mixed> —setCoordinates()
Set the Coordinates value for this Polygon.
public
setCoordinates(array<string|int, mixed> $coords) : mixed
Parameters
- $coords : array<string|int, mixed>
-
GeoPoints or Coordinates.