ReportingPeriod
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
__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.
in Segragating at line 54
HasOne
entity()
Model's Parent Entity.
in Recycling at line 26
static void
bootRecycling()
Model recycling events.
in Recycling at line 69
MorphMany
recycled()
Recycled Model records.
in ModelTablePrefix at line 20
getTable()
Determine the model table name
at line 69
__construct($attributes = [])
Construct new Account.
at line 82
static int
getPeriod(string $date = null)
Fetch reporting period for the date
at line 100
static int
year(string $date = null)
ReportingPeriod year
at line 115
static Carbon
periodStart(string $date = null)
ReportingPeriod start string
at line 129
static string
periodEnd(string $date = null)
ReportingPeriod end string
at line 141
object
attributes()
ReportingPeriod attributes.