Table of Contents
-
$_id
: ObjectId
-
$createdBy
: ObjectId
-
$createTime
: int
-
$editedBy
: ObjectId|null
-
$files
: array<string|int, mixed>
-
$images
: array<string|int, mixed>
-
$important
: bool
-
$organizationId
: ObjectId
-
$text
: string
-
$updateTime
: int|null
-
__construct()
: mixed
-
__toString()
: string
-
bsonSerialize()
: array<string|int, mixed>
-
bsonUnserialize()
: void
-
getCreatedBy()
: ObjectId
-
getCreateTime()
: int
-
getEditedBy()
: ObjectId
-
getFiles()
: array<string|int, mixed>
-
getId()
: ObjectId
-
getImages()
: array<string|int, mixed>
-
getOrganizationId()
: ObjectId
-
getText()
: string
-
getUpdateTime()
: int|null
-
isImportant()
: bool
-
jsonSerialize()
: array<string|int, mixed>
-
parseObjectId()
: ObjectId|null
-
setEditedBy()
: self
-
setFiles()
: self
-
setId()
: self
-
setImages()
: self
-
setImportant()
: CommentEntity
-
setText()
: self
-
setUpdateTime()
: self
-
toArray()
: array<string|int, mixed>
$_id
protected
ObjectId
$_id
$createdBy
private
ObjectId
$createdBy
$createTime
private
int
$createTime
$editedBy
private
ObjectId|null
$editedBy
= null
$files
private
array<string|int, mixed>
$files
= []
$images
private
array<string|int, mixed>
$images
= []
$important
private
bool
$important
= false
$organizationId
private
ObjectId
$organizationId
$text
private
string
$text
$updateTime
private
int|null
$updateTime
= null
__construct()
public
__construct(ObjectId $createdBy, ObjectId $organizationId, string $text, int $createTime[, array<string|int, mixed> $images = [] ][, array<string|int, mixed> $files = [] ][, ObjectId|null $id = null ]) : mixed
Parameters
-
$createdBy
: ObjectId
-
-
$organizationId
: ObjectId
-
-
$text
: string
-
-
$createTime
: int
-
-
$images
: array<string|int, mixed>
= []
-
-
$files
: array<string|int, mixed>
= []
-
-
$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
—
getCreatedBy()
public
getCreatedBy() : ObjectId
Return values
ObjectId
—
getCreateTime()
public
getCreateTime() : int
Return values
int
—
getEditedBy()
public
getEditedBy() : ObjectId
Return values
ObjectId
—
getFiles()
public
getFiles() : array<string|int, mixed>
Return values
array<string|int, mixed>
—
getId()
public
getId() : ObjectId
Return values
ObjectId
—
getImages()
public
getImages() : array<string|int, mixed>
Return values
array<string|int, mixed>
—
getOrganizationId()
public
getOrganizationId() : ObjectId
Return values
ObjectId
—
getText()
public
getText() : string
Return values
string
—
getUpdateTime()
public
getUpdateTime() : int|null
Return values
int|null
—
isImportant()
public
isImportant() : 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
—
setEditedBy()
public
setEditedBy(ObjectId $editedBy) : self
Parameters
-
$editedBy
: ObjectId
-
Return values
self
—
setFiles()
public
setFiles(array<string|int, mixed> $files) : self
Parameters
-
$files
: array<string|int, mixed>
-
Return values
self
—
setId()
public
setId(ObjectId $id) : self
Parameters
-
$id
: ObjectId
-
Return values
self
—
setImages()
public
setImages(array<string|int, mixed> $images) : self
Parameters
-
$images
: array<string|int, mixed>
-
Return values
self
—
setImportant()
public
setImportant(bool $important) : CommentEntity
Parameters
-
$important
: bool
-
Return values
CommentEntity
—
setText()
public
setText(string $text) : self
Parameters
-
$text
: string
-
Return values
self
—
setUpdateTime()
public
setUpdateTime(int $updateTime) : self
Parameters
-
$updateTime
: int
-
Return values
self
—
toArray()
public
toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>
—