MetaFox

PointStatistic extends Model
in package
implements Entity, HasAmounts Uses HasEntity, HasAmountsTrait, HasFactory

Class PointStatistic.

Tags
mixin

Builder

Table of Contents

Interfaces

Entity
Interface Entity.
HasAmounts
Trait HasAmounts

Constants

ENTITY_TYPE  = 'activitypoint_statistic'

Properties

$available_points  : int
$current_points  : int
$id  : int
$incrementing  : mixed
$total_bought  : int
$total_earned  : int
$total_received  : int
$total_retrieved  : int
$total_sent  : int
$total_spent  : int
$userEntity  : UserEntity|null
$casts  : array<string|int, string>
$fillable  : array<string|int, string>
$table  : mixed

Methods

decrementAmount()  : int
decrementTotalItem()  : void
entityId()  : int
entityType()  : string
factory()  : PointStatisticFactory
getAvailablePointsAttribute()  : int
getUserEntityAttribute()  : mixed
incrementAmount()  : int
incrementTotalItem()  : void
incrementTotalView()  : void
moduleName()  : string
updateTotalBought()  : int
updateTotalEarned()  : int
updateTotalReceived()  : int
updateTotalRetrieved()  : int
updateTotalSent()  : int
updateTotalSpent()  : int
userEntity()  : BelongsTo
userId()  : mixed
userType()  : mixed
handleNegativeNumber()  : void
newFactory()  : PointStatisticFactory

Constants

ENTITY_TYPE

public mixed ENTITY_TYPE = 'activitypoint_statistic'

Properties

$casts

protected array<string|int, string> $casts = ['current_points' => 'integer', 'total_earned' => 'integer', 'total_bought' => 'integer', 'total_sent' => 'integer', 'total_spent' => 'integer', 'total_received' => 'integer', 'total_retrieved' => 'integer']

$fillable

protected array<string|int, string> $fillable = ['id', 'current_points', 'total_earned', 'total_bought', 'total_sent', 'total_spent', 'total_received', 'total_retrieved']

Methods

decrementAmount()

public decrementAmount(string $column[, int $amount = 1 ]) : int
Parameters
$column : string
$amount : int = 1
Return values
int

entityId()

public entityId() : int
Return values
int

entityType()

public entityType() : string
Return values
string

factory()

public static factory(mixed $count, mixed $state) : PointStatisticFactory
Parameters
$count : mixed
$state : mixed
Return values
PointStatisticFactory

getAvailablePointsAttribute()

public getAvailablePointsAttribute() : int
Return values
int

getUserEntityAttribute()

public getUserEntityAttribute() : mixed

incrementAmount()

public incrementAmount(string $column[, int $amount = 1 ]) : int
Parameters
$column : string
$amount : int = 1
Return values
int

moduleName()

public moduleName() : string
Return values
string

updateTotalBought()

public updateTotalBought(int $amount) : int
Parameters
$amount : int
Return values
int

updateTotalEarned()

public updateTotalEarned(int $amount) : int
Parameters
$amount : int
Return values
int

updateTotalReceived()

public updateTotalReceived(int $amount) : int
Parameters
$amount : int
Return values
int

updateTotalRetrieved()

public updateTotalRetrieved(int $amount) : int
Parameters
$amount : int
Return values
int

updateTotalSent()

public updateTotalSent(int $amount) : int
Parameters
$amount : int
Return values
int

updateTotalSpent()

public updateTotalSpent(int $amount) : int
Parameters
$amount : int
Return values
int

userEntity()

public userEntity() : BelongsTo
Return values
BelongsTo

handleNegativeNumber()

protected handleNegativeNumber(string $column) : void
Parameters
$column : string

newFactory()

protected static newFactory() : PointStatisticFactory
Return values
PointStatisticFactory

        
On this page

Search results