AirLay backend

CustomCategory extends Category
in package

Table of Contents

AVAILABLE_GEOMETRY_TYPES  = ['Point', 'LineString', 'Polygon', 'MultiPoint', 'MultiLineString', 'MultiPolygon', 'GeometryCollection']
$_id  : ObjectId
$children  : array<string|int, mixed>
$color  : string
$dataSetId  : ObjectId
$geometryTypes  : array<string|int, mixed>
$icon  : string
$name  : string
$organizationId  : ObjectId
$properties  : array<string|int, mixed>
$type  : string
__construct()  : mixed
bsonSerialize()  : array<string|int, mixed>
bsonUnserialize()  : void
fromArray()  : CustomCategory
getChildren()  : array<string|int, ObjectId>
getDataSetId()  : ObjectId
getGeometryTypes()  : array<string|int, string>
getId()  : ObjectId
getName()  : string
getProperties()  : array<string|int, Property>
getType()  : string
jsonSerialize()  : array<string|int, mixed>
setChildren()  : $this
setColor()  : self
setGeometryTypes()  : self
setIcon()  : self
setId()  : self
setName()  : self
setProperties()  : $this
toArray()  : array<string|int, mixed>
update()  : void

Constants

AVAILABLE_GEOMETRY_TYPES

public mixed AVAILABLE_GEOMETRY_TYPES = ['Point', 'LineString', 'Polygon', 'MultiPoint', 'MultiLineString', 'MultiPolygon', 'GeometryCollection']

Properties

$color

protected string $color = 'black'

$geometryTypes

protected array<string|int, mixed> $geometryTypes = self::AVAILABLE_GEOMETRY_TYPES

$icon

protected string $icon = 'default'

Methods

__construct()

public __construct(ObjectId $_id, string $name, ObjectId $dataSetId, ObjectId $organizationId) : mixed
Parameters
$_id : ObjectId
$name : string
$dataSetId : ObjectId
$organizationId : ObjectId
Return values
mixed

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

getChildren()

public getChildren() : array<string|int, ObjectId>
Return values
array<string|int, ObjectId>

getDataSetId()

public getDataSetId() : ObjectId
Return values
ObjectId

getGeometryTypes()

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

getId()

public getId() : ObjectId
Return values
ObjectId

getName()

public getName() : string
Return values
string

jsonSerialize()

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

setChildren()

public setChildren(array<string|int, ObjectId>|array<string|int, string> $children) : $this
Parameters
$children : array<string|int, ObjectId>|array<string|int, string>
Return values
$this

setColor()

public setColor(string $color) : self
Parameters
$color : string
Return values
self

setGeometryTypes()

public setGeometryTypes(array<string|int, mixed> $geometryTypes) : self
Parameters
$geometryTypes : array<string|int, mixed>
Return values
self

setIcon()

public setIcon(string $icon) : self
Parameters
$icon : string
Return values
self

setId()

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

setName()

public setName(string $name) : self
Parameters
$name : string
Return values
self

setProperties()

public setProperties(array<string|int, Property$properties) : $this
Parameters
$properties : array<string|int, Property>
Return values
$this

toArray()

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

update()

public update(array<string|int, mixed> $data) : void
Parameters
$data : array<string|int, mixed>
Return values
void

Search results