class EntryResult implements JsonSerializable

Properties

protected string|null $avatar

The generated URL to the entry user's avatar.

Methods

__construct(mixed $id, mixed $sequence, string $batchId, string $type, string|null $familyHash, array $content, CarbonInterface $createdAt, array $tags = [])

Create a new entry result instance.

generateAvatar()

Set the URL to the entry user's avatar.

array
jsonSerialize()

Get the array representation of the entry.

Details

at line 30
__construct(mixed $id, mixed $sequence, string $batchId, string $type, string|null $familyHash, array $content, CarbonInterface $createdAt, array $tags = [])

Create a new entry result instance.

Parameters

mixed $id

the entry's primary key

mixed $sequence

the entry's sequence

string $batchId

the entry's batch ID

string $type

the entry's type

string|null $familyHash

the entry's family hash

array $content

the entry's content

CarbonInterface $createdAt

the datetime that the entry was recorded

array $tags

the tags assigned to the entry

at line 45
EntryResult generateAvatar()

Set the URL to the entry user's avatar.

Return Value

EntryResult

at line 59
array jsonSerialize()

Get the array representation of the entry.

Return Value

array