ConversionStatistic
extends Model
in package
implements
Entity
Uses
HasEntity, HasFactory, HasAmountsTrait
Class ConversionStatistic
Table of Contents
Interfaces
- Entity
- Interface Entity.
Constants
- ENTITY_TYPE = 'activitypoint_conversion_statistic'
Properties
- $casts : mixed
- $id : int
- $timestamps : mixed
- $total_converted : int
- $total_pending : int
- $user_id : int
- $user_type : string
- $fillable : array<string|int, string>
- $table : mixed
Methods
- decrementAmount() : int
- decrementTotalItem() : void
- entityId() : int
- entityType() : string
- incrementAmount() : int
- incrementTotalItem() : void
- incrementTotalView() : void
- moduleName() : string
- handleNegativeNumber() : void
Constants
ENTITY_TYPE
public
mixed
ENTITY_TYPE
= 'activitypoint_conversion_statistic'
Properties
$casts
public
mixed
$casts
= ['total_converted' => 'integer', 'total_pending' => 'integer']
$id
public
int
$id
$timestamps
public
mixed
$timestamps
= false
$total_converted
public
int
$total_converted
$total_pending
public
int
$total_pending
$user_id
public
int
$user_id
$user_type
public
string
$user_type
$fillable
protected
array<string|int, string>
$fillable
= ['user_id', 'user_type', 'total_converted', 'total_pending']
$table
protected
mixed
$table
= 'apt_conversion_statistics'
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
stringincrementAmount()
public
incrementAmount(string $column[, int $amount = 1 ]) : int
Parameters
- $column : string
- $amount : int = 1
Return values
intincrementTotalItem()
public
incrementTotalItem() : void
incrementTotalView()
public
incrementTotalView() : void
moduleName()
public
moduleName() : string
Return values
stringhandleNegativeNumber()
protected
handleNegativeNumber(string $column) : void
Parameters
- $column : string