AirLay backend

WayEntity extends DatabaseEntity
in package

Table of Contents

$_id  : ObjectId
$deleted  : bool
$nodeFirst  : NodeEntity
$nodeSecond  : NodeEntity
$relation  : ObjectId|null
__construct()  : mixed
__toString()  : string
bsonSerialize()  : array<string|int, mixed>
bsonUnserialize()  : void
deleteRelation()  : self
getId()  : ObjectId
getNodeFirst()  : ObjectId
getNodeSecond()  : ObjectId
getRelation()  : ObjectId|null
isDeleted()  : bool
jsonSerialize()  : array<string|int, mixed>
markAsDeleted()  : self
parseObjectId()  : ObjectId|null
setId()  : self
setNodeFirst()  : self
setNodeSecond()  : self
setRelation()  : self
toArray()  : array<string|int, mixed>
getLocation()  : LineString|Point

Properties

$relation

private ObjectId|null $relation = null

Methods

__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

deleteRelation()

public deleteRelation() : self
Return values
self

getNodeFirst()

public getNodeFirst() : ObjectId
Return values
ObjectId

getNodeSecond()

public getNodeSecond() : ObjectId
Return values
ObjectId

getRelation()

public getRelation() : ObjectId|null
Return values
ObjectId|null

isDeleted()

public isDeleted() : bool
Return values
bool

jsonSerialize()

public jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>

markAsDeleted()

public markAsDeleted() : self
Return values
self

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

setRelation()

public setRelation(ObjectId $relationId) : self
Parameters
$relationId : ObjectId
Return values
self

toArray()

public toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

Search results