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
$_id
protected
ObjectId
$_id
$deleted
private
bool
$deleted
$nodeFirst
private
NodeEntity
$nodeFirst
$nodeSecond
private
NodeEntity
$nodeSecond
$relation
private
ObjectId|null
$relation
= null
__construct()
public
__construct(NodeEntity $nodeFirst, NodeEntity $nodeSecond[, ObjectId|null $id = null ]) : mixed
Parameters
-
$nodeFirst
: NodeEntity
-
-
$nodeSecond
: NodeEntity
-
-
$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
—
deleteRelation()
public
deleteRelation() : self
Return values
self
—
getId()
public
getId() : ObjectId
Return values
ObjectId
—
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
—
setNodeFirst()
public
setNodeFirst(NodeEntity $node) : self
Parameters
-
$node
: NodeEntity
-
Return values
self
—
setNodeSecond()
public
setNodeSecond(NodeEntity $node) : self
Parameters
-
$node
: NodeEntity
-
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>
—
getLocation()
private
getLocation() : LineString|Point
Return values
LineString|Point
—