class Assignment extends Model implements Segregatable

Class Assignment

Traits

Constants

CLEARABLES

Clearable Transaction Types

ASSIGNABLES

Assignable Transaction Types

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 void
bootSegregating()

Register EntityScope for Model.

BelongsTo
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

bool
save(array $options = [])

Assignment Validation.

string
toString($type = false)

Instance Identifier.

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.

Details

in Segregating at line 28
static void bootSegregating()

Register EntityScope for Model.

Return Value

void

in Segregating at line 46
BelongsTo entity()

Model's Parent Entity.

Return Value

BelongsTo

in ModelTablePrefix at line 22
getTable()

Determine the model table name

at line 107
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 143
bool save(array $options = [])

Assignment Validation.

Parameters

array $options

Return Value

bool

at line 250
string toString($type = false)

Instance Identifier.

Parameters

$type

Return Value

string

at line 262
BelongsTo transaction()

Transaction to be cleared.

Return Value

BelongsTo

at line 272
MorphTo cleared()

Transaction|Balance to be cleared.

Return Value

MorphTo

at line 282
HasOne forexAccount()

Account for posting Exchange Rate Differences.

Return Value

HasOne

at line 292
object attributes()

Assignment attributes.

Return Value

object