TicketService
in package
Table of Contents
- $whmcsApi : IWhmcsHttpClient
- __construct() : mixed
- getTicket() : TicketObject
- Retrieve the ticket from WHMCS
- openClientTicket() : array<string|int, mixed>
Properties
$whmcsApi
protected
IWhmcsHttpClient
$whmcsApi
Methods
__construct()
public
__construct(IWhmcsHttpClient $whmcsApi) : mixed
Parameters
- $whmcsApi : IWhmcsHttpClient
Return values
mixed —getTicket()
Retrieve the ticket from WHMCS
public
getTicket(int $ticketId) : TicketObject
Parameters
- $ticketId : int
-
numeric id of the ticket
Tags
Return values
TicketObject —the TicketResource
openClientTicket()
public
openClientTicket(TicketObject $ticketObj) : array<string|int, mixed>
Parameters
- $ticketObj : TicketObject