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