class ReportingPeriod extends Model implements Segragatable, Recyclable

Class ReportingPeriod

Traits

Constants

OPEN

Reporting Period Status

CLOSED

ADJUSTING

Properties

protected array $fillable The attributes that are mass assignable.
Entity $entity
integer $year
integer $period_count
string $status
Carbon $destroyed_at
Carbon $deleted_at

Methods

static null
bootSegragating()

Register EntityScope for Model.

HasOne
entity()

Model's Parent Entity.

static void
bootRecycling()

Model recycling events.

from Recycling
MorphMany
recycled()

Recycled Model records.

from Recycling
getTable()

Determine the model table name

__construct($attributes = [])

Construct new Account.

static int
getPeriod(string $date = null)

Fetch reporting period for the date

static int
year(string $date = null)

ReportingPeriod year

static Carbon
periodStart(string $date = null)

ReportingPeriod start string

static string
periodEnd(string $date = null)

ReportingPeriod end string

object
attributes()

ReportingPeriod attributes.

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 Recycling at line 26
static void bootRecycling()

Model recycling events.

Return Value

void

in Recycling at line 69
MorphMany recycled()

Recycled Model records.

Return Value

MorphMany

in ModelTablePrefix at line 20
getTable()

Determine the model table name

at line 69
__construct($attributes = [])

Construct new Account.

Parameters

$attributes

at line 82
static int getPeriod(string $date = null)

Fetch reporting period for the date

Parameters

string $date

Return Value

int

at line 100
static int year(string $date = null)

ReportingPeriod year

Parameters

string $date

Return Value

int

at line 115
static Carbon periodStart(string $date = null)

ReportingPeriod start string

Parameters

string $date

Return Value

Carbon

at line 129
static string periodEnd(string $date = null)

ReportingPeriod end string

Parameters

string $date

Return Value

string

at line 141
object attributes()

ReportingPeriod attributes.

Return Value

object