Intercept extends Action
Table of Contents
Constants
- ACTION = 'INTERCEPT_CALL'
Methods
- checkPhoneNumber() : bool
- Should return true if dialed number should be handled by the action,
- getClass() : string
- Returns name of the class.
- getResponse() : array<string|int, mixed>
- Should return response for the scenario.
Constants
ACTION
public
mixed
ACTION
= 'INTERCEPT_CALL'
Methods
checkPhoneNumber()
Should return true if dialed number should be handled by the action,
public
checkPhoneNumber(mixed $phoneNumber) : bool
Parameters
- $phoneNumber : mixed
-
Phone Number.
Return values
boolgetClass()
Returns name of the class.
public
static getClass() : string
Return values
stringgetResponse()
Should return response for the scenario.
public
getResponse(mixed $callId, mixed $userId, mixed $phoneNumber) : array<string|int, mixed>
Parameters
- $callId : mixed
-
Id of the call.
- $userId : mixed
-
Id of the user.
- $phoneNumber : mixed
-
Phone number.