AirLay backend

IssueEntity extends DatabaseEntity
in package

Table of Contents

AVAILABLE_ASSIGN_TYPE  = ['user', 'group', 'brigade']
AVAILABLE_OBSERVER_TYPE  = ['user', 'group', 'brigade', 'email', 'telegram']
AVAILABLE_TYPES  = ['Common', 'Monitoring', 'Itinerary', 'ObjectCollection', 'Dispatching']
MAX_OBSERVED_OBJECTS  = 200
MAX_PROGRESS  = 100
MIN_PROGRESS  = 0
$_id  : ObjectId
$assign  : array<string|int, mixed>|null
$children  : array<string|int, mixed>
$closeDate  : int|null
$comments  : array<string|int, mixed>
$createDate  : int
$dataSetId  : ObjectId|null
$description  : string
$endDate  : int|null
$estimatedTime  : int|null
$milestoneId  : ObjectId|null
$monitoring  : MonitoringInterface|null
$name  : string
$notificationSenderId  : ObjectId|null
$number  : int
$observers  : array<string|int, mixed>
$organizationId  : ObjectId
$parents  : array<string|int, mixed>
$priorityId  : ObjectId|null
$progress  : int
$relatedObjects  : array<string|int, mixed>
$spentTime  : int|null
$startDate  : int|null
$statusId  : ObjectId|null
$template  : bool
$type  : string
$updateDate  : int|null
$updateUser  : ObjectId|null
__construct()  : mixed
__toString()  : string
addChild()  : self
addComment()  : self
addMonitoringObjects()  : self
addObserver()  : self
addParent()  : self
addRelatedObject()  : self
bsonSerialize()  : array<string|int, mixed>
bsonUnserialize()  : void
fromArray()  : IssueEntity
getAssign()  : array<string|int, mixed>|null
getChildren()  : array<string|int, ObjectId>
getCloseDate()  : int|null
getComments()  : array<string|int, mixed>
getCreateDate()  : int|null
getDataSetId()  : ObjectId|null
getDescription()  : string
getEndDate()  : int|null
getEstimatedTime()  : int|null
getId()  : ObjectId
getMilestoneId()  : ObjectId|null
getMonitoring()  : MonitoringInterface|null
getName()  : string
getNotificationSenderId()  : ObjectId|null
getNumber()  : int
getObserver()  : array<string|int, mixed>|null
getObservers()  : array<string|int, mixed>
getOrganizationId()  : ObjectId
getParents()  : array<string|int, ObjectId>
getPriorityId()  : ObjectId|null
getProgress()  : int
getRelatedObjects()  : array<string|int, mixed>
getSpentTime()  : int|null
getStartDate()  : int|null
getStatusId()  : ObjectId|null
getTemplate()  : bool
getType()  : string
getUpdateDate()  : int|null
getUpdateUser()  : ObjectId|null
isTemplate()  : bool
jsonSerialize()  : array<string|int, mixed>
parseObjectId()  : ObjectId|null
removeAssign()  : self
removeChild()  : self
removeComment()  : self
removeObserver()  : self
removeParent()  : self
removeRelatedObject()  : self
setAssign()  : self
setChildren()  : $this
setCloseDate()  : self
setComments()  : $this
setDataSetId()  : self
setDescription()  : self
setEndDate()  : self
setEstimatedTime()  : self
setId()  : self
setMilestoneId()  : self
setMonitoring()  : self
setName()  : self
setNotificationSenderId()  : self
setNumber()  : IssueEntity
setObservers()  : self
setOrganizationId()  : self
setParents()  : $this
setPriorityId()  : self
setProgress()  : self
setRelatedObjects()  : self
setSpentTime()  : self
setStartDate()  : IssueEntity
setStatusId()  : self
setTemplate()  : self
setType()  : self
setUpdateDate()  : self
setUpdateUser()  : self
toArray()  : array<string|int, mixed>
unsetAssign()  : self
unsetMonitoringObject()  : self
unsetMonitoringObjects()  : self
unsetUpdateUser()  : self

Constants

AVAILABLE_ASSIGN_TYPE

public mixed AVAILABLE_ASSIGN_TYPE = ['user', 'group', 'brigade']

AVAILABLE_OBSERVER_TYPE

public mixed AVAILABLE_OBSERVER_TYPE = ['user', 'group', 'brigade', 'email', 'telegram']

AVAILABLE_TYPES

public mixed AVAILABLE_TYPES = ['Common', 'Monitoring', 'Itinerary', 'ObjectCollection', 'Dispatching']

MAX_OBSERVED_OBJECTS

public mixed MAX_OBSERVED_OBJECTS = 200

Properties

$assign

private array<string|int, mixed>|null $assign = null

$children

private array<string|int, mixed> $children = []

$comments

private array<string|int, mixed> $comments = []

$estimatedTime

private int|null $estimatedTime = null

$milestoneId

private ObjectId|null $milestoneId = null

$notificationSenderId

private ObjectId|null $notificationSenderId = null

$observers

private array<string|int, mixed> $observers = []

$parents

private array<string|int, mixed> $parents = []

$priorityId

private ObjectId|null $priorityId = null

$progress

private int $progress = self::MIN_PROGRESS

$relatedObjects

private array<string|int, mixed> $relatedObjects = []

$updateUser

private ObjectId|null $updateUser = null

Methods

__construct()

public __construct(string $name, int $number, ObjectId $organizationId[, ObjectId|null $statusId = null ][, array<string|int, mixed>|null $assign = null ][, ObjectId|null $priorityId = null ][, ObjectId|null $milestoneId = null ][, int|null $startDate = null ][, int|null $endDate = null ][, int|null $estimatedTime = null ][, int|null $spentTime = null ][, int $progress = self::MIN_PROGRESS ][, string $type = 'Common' ][, ObjectId|null $id = null ]) : mixed
Parameters
$name : string
$number : int
$organizationId : ObjectId
$statusId : ObjectId|null = null
$assign : array<string|int, mixed>|null = null
$priorityId : ObjectId|null = null
$milestoneId : ObjectId|null = null
$startDate : int|null = null
$endDate : int|null = null
$estimatedTime : int|null = null
$spentTime : int|null = null
$progress : int = self::MIN_PROGRESS
$type : string = 'Common'
$id : ObjectId|null = null
Return values
mixed

__toString()

public __toString() : string
Return values
string

addChild()

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

addComment()

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

addMonitoringObjects()

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

addObserver()

public addObserver(ObjectId|string $id, string $type) : self
Parameters
$id : ObjectId|string
$type : string
Return values
self

addParent()

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

addRelatedObject()

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

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

getAssign()

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

getChildren()

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

getCloseDate()

public getCloseDate() : int|null
Return values
int|null

getComments()

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

getCreateDate()

public getCreateDate() : int|null
Return values
int|null

getDataSetId()

public getDataSetId() : ObjectId|null
Return values
ObjectId|null

getDescription()

public getDescription() : string
Return values
string

getEndDate()

public getEndDate() : int|null
Return values
int|null

getEstimatedTime()

public getEstimatedTime() : int|null
Return values
int|null

getMilestoneId()

public getMilestoneId() : ObjectId|null
Return values
ObjectId|null

getName()

public getName() : string
Return values
string

getNotificationSenderId()

public getNotificationSenderId() : ObjectId|null
Return values
ObjectId|null

getNumber()

public getNumber() : int
Return values
int

getObserver()

public getObserver(string|ObjectId $id) : array<string|int, mixed>|null
Parameters
$id : string|ObjectId
Return values
array<string|int, mixed>|null

getObservers()

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

getOrganizationId()

public getOrganizationId() : ObjectId
Return values
ObjectId

getParents()

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

getPriorityId()

public getPriorityId() : ObjectId|null
Return values
ObjectId|null

getProgress()

public getProgress() : int
Return values
int

getRelatedObjects()

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

getSpentTime()

public getSpentTime() : int|null
Return values
int|null

getStartDate()

public getStartDate() : int|null
Return values
int|null

getStatusId()

public getStatusId() : ObjectId|null
Return values
ObjectId|null

getTemplate()

public getTemplate() : bool
Return values
bool

getType()

public getType() : string
Return values
string

getUpdateDate()

public getUpdateDate() : int|null
Return values
int|null

getUpdateUser()

public getUpdateUser() : ObjectId|null
Return values
ObjectId|null

isTemplate()

public isTemplate() : bool
Return values
bool

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

removeAssign()

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

removeChild()

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

removeComment()

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

removeObserver()

public removeObserver(string $id) : self
Parameters
$id : string
Return values
self

removeParent()

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

removeRelatedObject()

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

setAssign()

public setAssign(array<string|int, mixed> $ids, string $type) : self
Parameters
$ids : array<string|int, mixed>
$type : string
Return values
self

setChildren()

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

setCloseDate()

public setCloseDate(int|null $closeDate) : self
Parameters
$closeDate : int|null
Return values
self

setComments()

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

setDataSetId()

public setDataSetId(ObjectId|null $dataSetId) : self
Parameters
$dataSetId : ObjectId|null
Return values
self

setDescription()

public setDescription(string $description) : self
Parameters
$description : string
Return values
self

setEndDate()

public setEndDate(int|null $endDate) : self
Parameters
$endDate : int|null
Return values
self

setEstimatedTime()

public setEstimatedTime(int|null $estimatedTime) : self
Parameters
$estimatedTime : int|null
Return values
self

setId()

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

setMilestoneId()

public setMilestoneId(ObjectId|null $milestoneId) : self
Parameters
$milestoneId : ObjectId|null
Return values
self

setName()

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

setNotificationSenderId()

public setNotificationSenderId(ObjectId|null $id) : self
Parameters
$id : ObjectId|null
Return values
self

setObservers()

public setObservers(array<string|int, mixed> $observers) : self
Parameters
$observers : array<string|int, mixed>
Tags
throws
InvalidArgumentException
Return values
self

setOrganizationId()

public setOrganizationId(ObjectId $organizationId) : self
Parameters
$organizationId : ObjectId
Return values
self

setParents()

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

setPriorityId()

public setPriorityId(ObjectId|null $priorityId) : self
Parameters
$priorityId : ObjectId|null
Return values
self

setProgress()

public setProgress(int $progress) : self
Parameters
$progress : int
Return values
self

setRelatedObjects()

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

setSpentTime()

public setSpentTime(int|null $spentTime) : self
Parameters
$spentTime : int|null
Return values
self

setStatusId()

public setStatusId(ObjectId|null $statusId) : self
Parameters
$statusId : ObjectId|null
Return values
self

setTemplate()

public setTemplate(bool $template) : self
Parameters
$template : bool
Return values
self

setType()

public setType(string $type) : self
Parameters
$type : string
Return values
self

setUpdateDate()

public setUpdateDate(int|null $updateDate) : self
Parameters
$updateDate : int|null
Return values
self

setUpdateUser()

public setUpdateUser(ObjectId $userId) : self
Parameters
$userId : ObjectId
Return values
self

toArray()

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

unsetAssign()

public unsetAssign() : self
Return values
self

unsetMonitoringObject()

public unsetMonitoringObject(ObjectId $object) : self
Parameters
$object : ObjectId
Return values
self

unsetMonitoringObjects()

public unsetMonitoringObjects() : self
Return values
self

unsetUpdateUser()

public unsetUpdateUser() : self
Return values
self

Search results