AirLay backend

DeviceEntity extends DatabaseEntity
in package

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>

Properties

Methods

__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>
Tags
throws
InvalidArgumentException
Return values
DeviceEntity

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

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>

Search results