class Assignment extends Model implements Segragatable

Class Assignment

Traits

Properties

protected array $fillable The attributes that are mass assignable.
Entity $entity
Assignable $transaction
Clearable $cleared
float $amount
Carbon $destroyed_at
Carbon $deleted_at

Methods

static null
bootSegragating()

Register EntityScope for Model.

HasOne
entity()

Model's Parent Entity.

getTable()

Determine the model table name

static void
bulkAssign(Assignable $transaction)

Bulk assign a transaction to outstanding Transactions, under FIFO (First in first out) methodology

BelongsTo
transaction()

Transaction to be cleared.

MorphTo
cleared()

Transaction|Balance to be cleared.

HasOne
forexAccount()

Account for posting Exchange Rate Differences.

object
attributes()

Assignment attributes.

bool
save(array $options = [])

Assignment Validation.

Details

in Segragating at line 29
static null bootSegragating()

Register EntityScope for Model.

Return Value

null

in Segragating at line 54
HasOne entity()

Model's Parent Entity.

Return Value

HasOne

in ModelTablePrefix at line 20
getTable()

Determine the model table name

at line 71
static void bulkAssign(Assignable $transaction)

Bulk assign a transaction to outstanding Transactions, under FIFO (First in first out) methodology

Parameters

Assignable $transaction

Return Value

void

at line 185
BelongsTo transaction()

Transaction to be cleared.

Return Value

BelongsTo

at line 195
MorphTo cleared()

Transaction|Balance to be cleared.

Return Value

MorphTo

at line 205
HasOne forexAccount()

Account for posting Exchange Rate Differences.

Return Value

HasOne

at line 215
object attributes()

Assignment attributes.

Return Value

object

at line 223
bool save(array $options = [])

Assignment Validation.

Parameters

array $options

Return Value

bool