Table of Contents
-
$_id
: ObjectId
-
$geometry
: Point|null
-
$properties
: stdClass
-
__construct()
: mixed
-
__toString()
: string
-
bsonSerialize()
: array<string|int, mixed>
-
bsonUnserialize()
: void
-
createFromArray()
: DeviceEntity
-
getGeometry()
: Point|null
-
getId()
: ObjectId
-
getProperties()
: array<string|int, mixed>
-
getProperty()
: mixed
-
jsonSerialize()
: array<string|int, mixed>
-
parseObjectId()
: ObjectId|null
-
setGeometry()
: self
-
setId()
: self
-
setProperties()
: self
-
setProperty()
: $this
-
toArray()
: array<string|int, mixed>
$_id
protected
ObjectId
$_id
$geometry
protected
Point|null
$geometry
= null
$properties
protected
stdClass
$properties
__construct()
public
__construct(string $deviceId[, ObjectId|null $id = null ]) : mixed
Parameters
-
$deviceId
: string
-
-
$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
—
createFromArray()
public
static createFromArray(array<string|int, mixed> $data) : DeviceEntity
Parameters
-
$data
: array<string|int, mixed>
-
-
throws
-
InvalidArgumentException
Return values
DeviceEntity
—
getGeometry()
public
getGeometry() : Point|null
Return values
Point|null
—
getId()
public
getId() : ObjectId
Return values
ObjectId
—
getProperties()
public
getProperties() : array<string|int, mixed>
Return values
array<string|int, mixed>
—
getProperty()
public
getProperty(string $key) : mixed
Parameters
-
$key
: string
-
Return values
mixed
—
jsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>
—
parseObjectId()
public
static parseObjectId(mixed $objectId) : ObjectId|null
Parameters
-
$objectId
: mixed
-
Return values
ObjectId|null
—
setGeometry()
public
setGeometry(Point $point) : self
Parameters
-
$point
: Point
-
Return values
self
—
setId()
public
setId(ObjectId $id) : self
Parameters
-
$id
: ObjectId
-
Return values
self
—
setProperties()
public
setProperties(array<string|int, mixed> $properties) : self
Parameters
-
$properties
: array<string|int, mixed>
-
Return values
self
—
setProperty()
public
setProperty(string $key, mixed $value) : $this
Parameters
-
$key
: string
-
-
$value
: mixed
-
Return values
$this
—
toArray()
public
toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>
—