Documentation

ProductResource extends JsonResource
in package

WHMCS Product resource


WHMCS Tables:
  • tblproducts
  • tblproductgroups

Table of Contents

$annually_recurring  : float
$annually_setup_fee  : float
$biennially_recurring  : float
$biennially_setup_fee  : float
$created_at  : DateTime
$description  : string
$group_id  : int
$group_name  : string
$group_slug  : string
$hidden  : bool
$id  : int
$monthly_recurring  : float
$monthly_setup_fee  : float
$name  : string
$payment_type  : ProductPaymentType
$preserveKeys  : mixed
$quarterly_recurring  : float
$quarterly_setup_fee  : float
$semiannually_recurring  : float
$semiannually_setup_fee  : float
$slug  : string
$triennially_recurring  : float
$triennially_setup_fee  : float
$type  : ProductType
$updated_at  : DateTime
__construct()  : mixed
toArray()  : array<string|int, mixed>
with()  : array<string|int, mixed>

Properties

Methods

__construct()

public __construct(mixed $resource) : mixed
Parameters
$resource : mixed
Return values
mixed

toArray()

public toArray(mixed $request) : array<string|int, mixed>
Parameters
$request : mixed
Return values
array<string|int, mixed>

with()

public with( $request) : array<string|int, mixed>
Parameters
$request :
Return values
array<string|int, mixed>

Search results