Table of Contents
-
$_id
: ObjectId
-
$deleted
: bool|null
-
$distance
: float
-
$endTime
: int
-
$gasSpend
: float
-
$moveTime
: int
-
$properties
: array<string|int, mixed>
-
$route
: LineString|null
-
$startTime
: int
-
$steps
: array<string|int, mixed>|null
-
$stopTime
: int
-
$transportationMode
: TransportationMode
-
$waypoints
: array<string|int, mixed>|null
-
__construct()
: mixed
-
__toString()
: string
-
bsonSerialize()
: array<string|int, mixed>
-
bsonUnserialize()
: void
-
deleteProperty()
: self
-
fromArray()
: RouteEntity
-
getDistance()
: float
-
getEndTime()
: int
-
getGasSpend()
: float
-
getId()
: ObjectId
-
getMoveTime()
: int
-
getProperties()
: array<string, string|int|float>
-
getProperty()
: mixed
-
getRoute()
: LineString|null
-
getStartTime()
: int
-
getSteps()
: array<string|int, mixed>|null
-
getStopTime()
: int
-
getTransportationMode()
: TransportationMode
-
getWaypoints()
: array<string|int, mixed>|null
-
isDeleted()
: bool
-
jsonSerialize()
: mixed
-
markAsDeleted()
: mixed
-
parseObjectId()
: ObjectId|null
-
setDistance()
: RouteEntity
-
setEndTime()
: RouteEntity
-
setGasSpend()
: RouteEntity
-
setId()
: self
-
setMoveTime()
: RouteEntity
-
setProperties()
: RouteEntity
-
setProperty()
: self
-
setRoute()
: RouteEntity
-
setStartTime()
: RouteEntity
-
setSteps()
: RouteEntity
-
setStopTime()
: RouteEntity
-
setTransportationMode()
: RouteEntity
-
setWaypoints()
: RouteEntity
-
toArray()
: array<string|int, mixed>
$_id
protected
ObjectId
$_id
$deleted
private
bool|null
$deleted
= null
$distance
private
float
$distance
= 0
$endTime
private
int
$endTime
= 0
$gasSpend
private
float
$gasSpend
= 0
$moveTime
private
int
$moveTime
= 0
$properties
private
array<string|int, mixed>
$properties
= []
$route
private
LineString|null
$route
$startTime
private
int
$startTime
= 0
$steps
private
array<string|int, mixed>|null
$steps
$stopTime
private
int
$stopTime
= 0
$transportationMode
private
TransportationMode
$transportationMode
= \Airlay\Library\Entities\Route\TransportationMode::Car
$waypoints
private
array<string|int, mixed>|null
$waypoints
__construct()
public
__construct([ObjectId|null $id = null ]) : mixed
Parameters
-
$id
: ObjectId|null
= null
-
Return values
mixed
—
__toString()
public
__toString() : string
Return values
string
—
bsonSerialize()
public
bsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>
—
bsonUnserialize()
public
bsonUnserialize(array<string|int, mixed> $data) : void
Parameters
-
$data
: array<string|int, mixed>
-
Return values
void
—
deleteProperty()
public
deleteProperty(string $key) : self
Parameters
-
$key
: string
-
Return values
self
—
fromArray()
public
static fromArray(mixed $routeArray) : RouteEntity
Parameters
-
$routeArray
: mixed
-
Return values
RouteEntity
—
getDistance()
public
getDistance() : float
Return values
float
—
getEndTime()
public
getEndTime() : int
Return values
int
—
getGasSpend()
public
getGasSpend() : float
Return values
float
—
getId()
public
getId() : ObjectId
Return values
ObjectId
—
getMoveTime()
public
getMoveTime() : int
Return values
int
—
getProperties()
public
getProperties() : array<string, string|int|float>
Return values
array<string, string|int|float>
—
getProperty()
public
getProperty(string $key) : mixed
Parameters
-
$key
: string
-
Return values
mixed
—
getRoute()
public
getRoute() : LineString|null
Return values
LineString|null
—
getStartTime()
public
getStartTime() : int
Return values
int
—
getSteps()
public
getSteps() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null
—
getStopTime()
public
getStopTime() : int
Return values
int
—
getTransportationMode()
public
getTransportationMode() : TransportationMode
Return values
TransportationMode
—
getWaypoints()
public
getWaypoints() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null
—
isDeleted()
public
isDeleted() : bool
Return values
bool
—
jsonSerialize()
public
jsonSerialize() : mixed
Return values
mixed
—
markAsDeleted()
public
markAsDeleted() : mixed
Return values
mixed
—
parseObjectId()
public
static parseObjectId(mixed $objectId) : ObjectId|null
Parameters
-
$objectId
: mixed
-
Return values
ObjectId|null
—
setDistance()
public
setDistance(float $distance) : RouteEntity
Parameters
-
$distance
: float
-
Return values
RouteEntity
—
setEndTime()
public
setEndTime(int $endTime) : RouteEntity
Parameters
-
$endTime
: int
-
Return values
RouteEntity
—
setGasSpend()
public
setGasSpend(float $gasSpend) : RouteEntity
Parameters
-
$gasSpend
: float
-
Return values
RouteEntity
—
setId()
public
setId(ObjectId $id) : self
Parameters
-
$id
: ObjectId
-
Return values
self
—
setMoveTime()
public
setMoveTime(int $moveTime) : RouteEntity
Parameters
-
$moveTime
: int
-
Return values
RouteEntity
—
setProperties()
public
setProperties(array<string, string|int|float> $properties) : RouteEntity
Parameters
-
$properties
: array<string, string|int|float>
-
Return values
RouteEntity
—
setProperty()
public
setProperty(string $key, mixed $value) : self
Parameters
-
$key
: string
-
-
$value
: mixed
-
Return values
self
—
setRoute()
public
setRoute(LineString|null $route) : RouteEntity
Parameters
-
$route
: LineString|null
-
Return values
RouteEntity
—
setStartTime()
public
setStartTime(int $startTime) : RouteEntity
Parameters
-
$startTime
: int
-
Return values
RouteEntity
—
setSteps()
public
setSteps(array<string|int, mixed>|null $steps) : RouteEntity
Parameters
-
$steps
: array<string|int, mixed>|null
-
Return values
RouteEntity
—
setStopTime()
public
setStopTime(int $stopTime) : RouteEntity
Parameters
-
$stopTime
: int
-
Return values
RouteEntity
—
setTransportationMode()
public
setTransportationMode(TransportationMode $transportationMode) : RouteEntity
Parameters
-
$transportationMode
: TransportationMode
-
Return values
RouteEntity
—
setWaypoints()
public
setWaypoints(array<string|int, mixed>|null $waypoints) : RouteEntity
Parameters
-
$waypoints
: array<string|int, mixed>|null
-
Return values
RouteEntity
—
toArray()
public
toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>
—