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']
AVAILABLE_TOOLS
public
mixed
AVAILABLE_TOOLS
= ['issue', 'editor']
Properties
$_id
protected
ObjectId
$_id
$message
private
string
$message
= ""
$tool
private
stdClass
$tool
$type
private
string
$type
$userId
private
ObjectId
$userId
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
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 —getId()
public
getId() : ObjectId
Return values
ObjectId —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>