PointPackage
extends Model
in package
implements
Entity, HasAmounts, HasThumbnail, HasTitle
Uses
HasEntity, HasFactory, HasAmountsTrait, HasThumbnailTrait
Class PointPackage.
Tags
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
$amount
public
int
$amount
$created_at
public
string
$created_at
$id
public
int
$id
$image_file_id
public
int
$image_file_id
$image_path
public
string
$image_path
$is_active
public
bool
$is_active
$price
public
array<string|int, mixed>
$price
$purchases
public
Collection
$purchases
$server_id
public
string
$server_id
$title
public
string
$title
$total_purchase
public
int
$total_purchase
$updated_at
public
string
$updated_at
$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']
$table
protected
mixed
$table
= 'apt_packages'
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) : PointPackageFactory
Parameters
- $parameters : mixed
Return values
PointPackageFactorygetAdminBrowseUrlAttribute()
public
getAdminBrowseUrlAttribute() : mixed
getAdminEditUrlAttribute()
public
getAdminEditUrlAttribute() : mixed
getImageAttribute()
public
getImageAttribute() : string|null
Return values
string|nullgetImagesAttribute()
public
getImagesAttribute() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|nullgetSizes()
public
getSizes() : array<string|int, mixed>
Return values
array<string|int, mixed>getThumbnail()
public
getThumbnail() : string|null
Return values
string|nullincrementAmount()
public
incrementAmount(string $column[, int $amount = 1 ]) : int
Parameters
- $column : string
- $amount : int = 1
Return values
intincrementTotalItem()
public
incrementTotalItem() : void
incrementTotalPurchase()
public
incrementTotalPurchase([int $amount = 1 ]) : int
Parameters
- $amount : int = 1
Return values
intincrementTotalView()
public
incrementTotalView() : void
moduleName()
public
moduleName() : string
Return values
stringtoTitle()
public
toTitle() : string
Return values
stringhandleNegativeNumber()
protected
handleNegativeNumber(string $column) : void
Parameters
- $column : string
newFactory()
protected
static newFactory() : PointPackageFactory