AbstractBase
in package
implements
SMSInterface
Base class to enable sharing of common methods between SMS subclasses
Tags
Interfaces, Classes, Traits and Enums
- SMSInterface
- Interface for SMS classes.
Table of Contents
- $smsConfig : Config
- SMS configuration
- __construct() : mixed
- Constructor
- getValidationType() : string
- Get validation type for phone numbers
- filterPhoneNumber() : string
- Filter bad characters from a phone number
Properties
$smsConfig
SMS configuration
protected
Config
$smsConfig
Methods
__construct()
Constructor
public
__construct(Config $config) : mixed
Parameters
- $config : Config
-
SMS configuration
Return values
mixed —getValidationType()
Get validation type for phone numbers
public
getValidationType() : string
Return values
string —filterPhoneNumber()
Filter bad characters from a phone number
protected
filterPhoneNumber(string $num) : string
Parameters
- $num : string
-
Phone number to filter