PointPackageRepositoryInterface
in
Interface PointPackageRepositoryInterface.
Table of Contents
Methods
- activatePackage() : PointPackage
- createPackage() : PointPackage
- deactivatePackage() : PointPackage
- deletePackage() : bool
- getPurchasePackageMessage() : array<int, mixed>
- getSearchOptions() : array<string|int, mixed>
- initPurchase() : PackagePurchase
- onFailedPurchasePackage() : void
- onSuccessPurchasePackage() : void
- purchasePackage() : array<string, mixed>
- updatePackage() : PointPackage
- viewPackage() : PointPackage
- viewPackages() : Paginator
- viewPackagesAdmin() : Collection
Methods
activatePackage()
public
activatePackage(User $context, int $id) : PointPackage
Parameters
- $context : User
- $id : int
Return values
PointPackagecreatePackage()
public
createPackage(User $context, array<string, mixed> $attributes) : PointPackage
Parameters
- $context : User
- $attributes : array<string, mixed>
Return values
PointPackagedeactivatePackage()
public
deactivatePackage(User $context, int $id) : PointPackage
Parameters
- $context : User
- $id : int
Return values
PointPackagedeletePackage()
public
deletePackage(User $context, int $id) : bool
Parameters
- $context : User
- $id : int
Return values
boolgetPurchasePackageMessage()
public
getPurchasePackageMessage(int $id) : array<int, mixed>
Parameters
- $id : int
Return values
array<int, mixed>getSearchOptions()
public
getSearchOptions() : array<string|int, mixed>
Return values
array<string|int, mixed>initPurchase()
public
initPurchase(User $context, PointPackage $package, array<string, mixed> $attributes) : PackagePurchase
Parameters
- $context : User
- $package : PointPackage
- $attributes : array<string, mixed>
Return values
PackagePurchaseonFailedPurchasePackage()
public
onFailedPurchasePackage(PackagePurchase $purchase) : void
Parameters
- $purchase : PackagePurchase
onSuccessPurchasePackage()
public
onSuccessPurchasePackage(PackagePurchase $purchase) : void
Parameters
- $purchase : PackagePurchase
purchasePackage()
public
purchasePackage(User $context, int $id, array<string, mixed> $attributes) : array<string, mixed>
Parameters
- $context : User
- $id : int
- $attributes : array<string, mixed>
Return values
array<string, mixed>updatePackage()
public
updatePackage(User $context, int $id, array<string, mixed> $attributes) : PointPackage
Parameters
- $context : User
- $id : int
- $attributes : array<string, mixed>
Return values
PointPackageviewPackage()
public
viewPackage(User $context, int $id) : PointPackage
Parameters
- $context : User
- $id : int
Return values
PointPackageviewPackages()
public
viewPackages(User $context, array<string, mixed> $attributes) : Paginator
Parameters
- $context : User
- $attributes : array<string, mixed>
Return values
PaginatorviewPackagesAdmin()
public
viewPackagesAdmin(User $context, array<string, mixed> $attributes) : Collection
Parameters
- $context : User
- $attributes : array<string, mixed>