Documentation

JournalReference extends Model
in package
Uses CommonResponseProperties, HasFactory, HasRevisions, UuidPrimaryKey

Link to an external account entity (customer, vendor, etc.).

Tags
mixin

Builder

Table of Contents

$code  : string
$created_at  : Carbon
$domainUuid  : string
$extra  : string
$incrementing  : mixed
$journalReferenceUuid  : string
$revision  : Carbon
$updated_at  : Carbon
__get()  : HigherOrderCollectionProxy|mixed|string|null
The revision Hash is computationally expensive, only calculated when required.
checkRevision()  : mixed
Throw a Breaker exception if the request revision doesn't match the stored value.
clearRevisionCache()  : void
createFromMessage()  : self
findWith()  : Builder
getRevisionHash()  : mixed
refresh()  : mixed
toResponse()  : array<string|int, mixed>

Properties

$domainUuid

public string $domainUuid

The domain this reference exists in.

$journalReferenceUuid

public string $journalReferenceUuid

UUID primary key.

$revision

public Carbon $revision

Revision timestamp to detect race condition on update.

Methods

__get()

The revision Hash is computationally expensive, only calculated when required.

public __get( $key) : HigherOrderCollectionProxy|mixed|string|null
Parameters
$key :
Tags
throws
Exception
Return values
HigherOrderCollectionProxy|mixed|string|null

checkRevision()

Throw a Breaker exception if the request revision doesn't match the stored value.

public checkRevision(string|null $revision) : mixed
Parameters
$revision : string|null
Tags
throws
Breaker
Return values
mixed

clearRevisionCache()

public clearRevisionCache() : void
Return values
void

findWith()

public static findWith(Reference $reference) : Builder
Parameters
$reference : Reference
Tags
throws
Exception
noinspection

PhpIncompatibleReturnTypeInspection

noinspection

PhpDynamicAsStaticMethodCallInspection

Return values
Builder

getRevisionHash()

public getRevisionHash() : mixed
Return values
mixed

refresh()

public refresh() : mixed
Return values
mixed

toResponse()

public toResponse() : array<string|int, mixed>
Tags
throws
Exception
Return values
array<string|int, mixed>

Search results