LedgerDomain
extends Model
in package
Uses
CommonResponseProperties, HasFactory, HasNames, HasRevisions, UuidPrimaryKey
Domains assigned within the ledger.
Tags
Table of Contents
- $code : string
- $created_at : Carbon
- $currencyDefault : string
- $domainUuid : string
- $extra : string
- $flex : string
- $incrementing : mixed
- $names : array<string|int, LedgerName>
- $primaryKey : mixed
- $revision : Carbon
- $subJournals : bool
- $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
- nameIn() : string
- names() : HasMany
- refresh() : mixed
- toResponse() : array<string|int, string>
- Create a response array.
Properties
$code
public
string
$code
The unique domain code.
$created_at
public
Carbon
$created_at
When the record was created.
$currencyDefault
public
string
$currencyDefault
The default currency.
$domainUuid
public
string
$domainUuid
Primary key.
$extra
public
string
$extra
Application defined information.
$flex
public
string
$flex
JSON-encoded additional system information (e.g. supported currencies).
$incrementing
public
mixed
$incrementing
= false
$names
public
array<string|int, LedgerName>
$names
Associated names.
$primaryKey
public
mixed
$primaryKey
= 'domainUuid'
$revision
public
Carbon
$revision
Revision hash to detect race condition on update.
$subJournals
public
bool
$subJournals
Set if the domain uses sub-journals.
$updated_at
public
Carbon
$updated_at
When the record was updated.
Methods
__get()
The revision Hash is computationally expensive, only calculated when required.
public
__get( $key) : HigherOrderCollectionProxy|mixed|string|null
Parameters
Tags
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
Return values
mixed —clearRevisionCache()
public
clearRevisionCache() : void
Return values
void —createFromMessage()
public
static createFromMessage(Domain $message) : self
Parameters
- $message : Domain
Return values
self —findWith()
public
static findWith(EntityRef $entityRef) : Builder
Parameters
- $entityRef : EntityRef
Tags
Return values
Builder —getRevisionHash()
public
getRevisionHash() : mixed
Return values
mixed —nameIn()
public
nameIn(mixed $languages) : string
Parameters
- $languages : mixed
Return values
string —names()
public
names() : HasMany
Return values
HasMany —refresh()
public
refresh() : mixed
Return values
mixed —toResponse()
Create a response array.
public
toResponse() : array<string|int, string>