AirLay backend

RouteEntity extends DatabaseEntity
in package

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>

Properties

$properties

private array<string|int, mixed> $properties = []

$waypoints

private array<string|int, mixed>|null $waypoints

Methods

__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

getDistance()

public getDistance() : float
Return values
float

getEndTime()

public getEndTime() : int
Return values
int

getGasSpend()

public getGasSpend() : float
Return values
float

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

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

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

setId()

public setId(ObjectId $id) : self
Parameters
$id : ObjectId
Return values
self

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

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>

Search results