AirLay backend

NotificationEntity extends DatabaseEntity
in package

Table of Contents

AVAILABLE_EDITOR_TYPES  = ['info', 'error', 'success']
AVAILABLE_ISSUE_TYPES  = ['owner', 'observer']
AVAILABLE_TOOLS  = ['issue', 'editor']
$_id  : ObjectId
$message  : string
$tool  : stdClass
$type  : string
$userId  : ObjectId
__construct()  : mixed
__toString()  : string
bsonSerialize()  : array<string|int, mixed>
bsonUnserialize()  : void
getId()  : ObjectId
jsonSerialize()  : array<string|int, mixed>
parseObjectId()  : ObjectId|null
setId()  : self
toArray()  : array<string|int, mixed>

Constants

AVAILABLE_EDITOR_TYPES

public mixed AVAILABLE_EDITOR_TYPES = ['info', 'error', 'success']

AVAILABLE_ISSUE_TYPES

public mixed AVAILABLE_ISSUE_TYPES = ['owner', 'observer']

Properties

Methods

__construct()

public __construct(ObjectId $userId, stdClass $tool, string $type[, string $message = "" ][, ObjectId|null $id = null ]) : mixed
Parameters
$userId : ObjectId
$tool : stdClass

[{ type => issue, issueId => ObjectId}, {type => editor}]

$type : string
$message : string = ""
$id : ObjectId|null = null
Tags
throws
InvalidArgumentException
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

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

toArray()

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

Search results