MetaFox

PointPackage extends Model
in package
implements Entity, HasAmounts, HasThumbnail, HasTitle Uses HasEntity, HasFactory, HasAmountsTrait, HasThumbnailTrait

Class PointPackage.

Tags
mixin

Builder

Table of Contents

Interfaces

Entity
Interface Entity.
HasAmounts
Trait HasAmounts
HasThumbnail
Interface HasThumbnail.
HasTitle

Constants

ENTITY_TYPE  = 'activitypoint_package'
MAXIMUM_PACKAGE_TITLE  = 50

Properties

$amount  : int
$created_at  : string
$id  : int
$image_file_id  : int
$image_path  : string
$is_active  : bool
$price  : array<string|int, mixed>
$purchases  : Collection
$server_id  : string
$title  : string
$total_purchase  : int
$updated_at  : string
$casts  : array<string, string>
$fillable  : array<string|int, string>
$table  : mixed

Methods

decrementAmount()  : int
decrementTotalItem()  : void
entityId()  : int
entityType()  : string
factory()  : PointPackageFactory
getAdminBrowseUrlAttribute()  : mixed
getAdminEditUrlAttribute()  : mixed
getImageAttribute()  : string|null
getImagesAttribute()  : array<string|int, mixed>|null
getSizes()  : array<string|int, mixed>
getThumbnail()  : string|null
incrementAmount()  : int
incrementTotalItem()  : void
incrementTotalPurchase()  : int
incrementTotalView()  : void
moduleName()  : string
toTitle()  : string
handleNegativeNumber()  : void
newFactory()  : PointPackageFactory

Constants

ENTITY_TYPE

public mixed ENTITY_TYPE = 'activitypoint_package'

MAXIMUM_PACKAGE_TITLE

public mixed MAXIMUM_PACKAGE_TITLE = 50

Properties

$casts

protected array<string, string> $casts = ['is_active' => 'boolean', 'price' => 'array']

$fillable

protected array<string|int, string> $fillable = ['title', 'image_file_id', 'amount', 'price', 'is_active', 'total_purchase', 'created_at', 'updated_at']

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 $parameters) : PointPackageFactory
Parameters
$parameters : mixed
Return values
PointPackageFactory

getAdminBrowseUrlAttribute()

public getAdminBrowseUrlAttribute() : mixed

getAdminEditUrlAttribute()

public getAdminEditUrlAttribute() : mixed

getImageAttribute()

public getImageAttribute() : string|null
Return values
string|null

getImagesAttribute()

public getImagesAttribute() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null

getSizes()

public getSizes() : array<string|int, mixed>
Return values
array<string|int, mixed>

getThumbnail()

public getThumbnail() : string|null
Return values
string|null

incrementAmount()

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

incrementTotalPurchase()

public incrementTotalPurchase([int $amount = 1 ]) : int
Parameters
$amount : int = 1
Return values
int

moduleName()

public moduleName() : string
Return values
string

toTitle()

public toTitle() : string
Return values
string

handleNegativeNumber()

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

newFactory()

protected static newFactory() : PointPackageFactory
Return values
PointPackageFactory

        
On this page

Search results