ReportItemAggregate
extends Model
in package
implements
Entity, HasAmounts
Uses
HasEntity, HasFactory, HasItemMorph, HasAmountsTrait
Class ReportItemAggregate.
Tags
Table of Contents
Interfaces
- Entity
- Interface Entity.
- HasAmounts
- Trait HasAmounts
Constants
- ENTITY_TYPE = 'report_item_aggregate'
Properties
- $created_at : string
- $last_user : User|null
- $total_reports : int
- $updated_at : string
- $fillable : array<string|int, string>
- $table : mixed
Methods
- decrementAmount() : int
- decrementTotalItem() : void
- entityId() : int
- entityType() : string
- factory() : ReportItemAggregateFactory
- getItemAttribute() : mixed
- incrementAmount() : int
- incrementTotalItem() : void
- incrementTotalView() : void
- item() : MorphTo|null
- itemId() : int
- itemType() : string
- last_user() : MorphTo
- moduleName() : string
- handleNegativeNumber() : void
- newFactory() : ReportItemAggregateFactory
Constants
ENTITY_TYPE
public
mixed
ENTITY_TYPE
= 'report_item_aggregate'
Properties
$created_at
public
string
$created_at
$last_user
public
User|null
$last_user
$total_reports
public
int
$total_reports
$updated_at
public
string
$updated_at
$fillable
protected
array<string|int, string>
$fillable
= ['item_id', 'item_type', 'last_user_id', 'last_user_type', 'total_reports', 'created_at', 'updated_at']
$table
protected
mixed
$table
= 'report_item_aggregate'
Methods
decrementAmount()
public
decrementAmount(string $column[, int $amount = 1 ]) : int
Parameters
- $column : string
- $amount : int = 1
Return values
intdecrementTotalItem()
public
decrementTotalItem() : void
entityId()
public
entityId() : int
Return values
intentityType()
public
entityType() : string
Return values
stringfactory()
public
static factory(mixed $parameters) : ReportItemAggregateFactory
Parameters
- $parameters : mixed
Return values
ReportItemAggregateFactorygetItemAttribute()
public
getItemAttribute() : mixed
incrementAmount()
public
incrementAmount(string $column[, int $amount = 1 ]) : int
Parameters
- $column : string
- $amount : int = 1
Return values
intincrementTotalItem()
public
incrementTotalItem() : void
incrementTotalView()
public
incrementTotalView() : void
item()
public
item() : MorphTo|null
Return values
MorphTo|nullitemId()
public
itemId() : int
Return values
intitemType()
public
itemType() : string
Return values
stringlast_user()
public
last_user() : MorphTo
Return values
MorphTomoduleName()
public
moduleName() : string
Return values
stringhandleNegativeNumber()
protected
handleNegativeNumber(string $column) : void
Parameters
- $column : string
newFactory()
protected
static newFactory() : ReportItemAggregateFactory