LineItems
in package
Generates a line item for a single service.
Calculates, adjusts, and formats the fee. Centralizes information for the assignment.
Tags
Table of Contents
Properties
- $line_items : array<string|int, mixed>
- Line item objects.
- $service : Service
- Service object.
- $service_fee : float
- Service fee.
- $service_id : int
- The ID of the service.
- $service_name : string
- Service name.
Methods
- __construct() : mixed
- Constructor method.
Properties
$line_items
Line item objects.
public
array<string|int, mixed>
$line_items
$service
Service object.
public
Service
$service
$service_fee
Service fee.
public
float
$service_fee
$service_id
The ID of the service.
public
int
$service_id
$service_name
Service name.
public
string
$service_name
Methods
__construct()
Constructor method.
public
__construct(array<string|int, mixed> $args) : mixed
Parameters
- $args : array<string|int, mixed>
-
{ An array of args passed from the booking form.
@type int $service_id The ID of the Service post. @type array $adjustment_options An array of selected Adjustment IDs. @type int $rate_count The number from the applicable fee number field (words, hours, etc). @type int $team_id The ID of the team member to assign to the service. @type int $team_member_role The ID of the Role of the team member.}