Base
AbstractYes
Table of Contents
Methods
- canUse() : bool
- Check can use state of provider.
- className() : mixed
- getDefaultFrom() : null|string
- Get default From.
- getExternalId() : mixed
- getFirstFromList() : mixed|null
- getFromList() : mixed
- getId() : mixed
- getManageUrl() : mixed
- getName() : string
- getShortName() : string
- getType() : mixed
- isConfigurable() : mixed
- isCorrectFrom() : bool
- isSupported() : bool
- prepareMessageBodyForSave() : string
- Prepares text for message body.
- resolveStatus() : int
- Converts service status to internal status
- sendMessage() : SendMessage
- sendTemplate() : Result
- setSocketTimeout() : Base
- setStreamTimeout() : Base
Methods
canUse()
Check can use state of provider.
public
abstract canUse() : bool
Return values
boolclassName()
public
static className() : mixed
getDefaultFrom()
Get default From.
public
getDefaultFrom() : null|string
Return values
null|stringgetExternalId()
public
getExternalId() : mixed
getFirstFromList()
public
getFirstFromList() : mixed|null
Return values
mixed|nullgetFromList()
public
abstract getFromList() : mixed
getId()
public
abstract getId() : mixed
getManageUrl()
public
getManageUrl() : mixed
getName()
public
abstract getName() : string
Return values
stringgetShortName()
public
abstract getShortName() : string
Return values
stringgetType()
public
getType() : mixed
isConfigurable()
public
isConfigurable() : mixed
isCorrectFrom()
public
isCorrectFrom(string $from) : bool
Parameters
- $from : string
Return values
boolisSupported()
public
static isSupported() : bool
Return values
boolprepareMessageBodyForSave()
Prepares text for message body.
public
prepareMessageBodyForSave(string $text) : string
Parameters
- $text : string
Return values
stringresolveStatus()
Converts service status to internal status
public
static resolveStatus(mixed $serviceStatus) : int
Parameters
- $serviceStatus : mixed
Tags
Return values
intsendMessage()
public
abstract sendMessage(array<string|int, mixed> $messageFieldsFields) : SendMessage
Parameters
- $messageFieldsFields : array<string|int, mixed>
Return values
SendMessage —Send operation result.
sendTemplate()
public
sendTemplate(string $name, string $text[, array<string|int, mixed> $examples = [] ][, string|null $langCode = null ]) : Result
Parameters
- $name : string
- $text : string
- $examples : array<string|int, mixed> = []
- $langCode : string|null = null
Return values
ResultsetSocketTimeout()
public
setSocketTimeout(int $socketTimeout) : Base
Parameters
- $socketTimeout : int
Return values
BasesetStreamTimeout()
public
setStreamTimeout(int $streamTimeout) : Base
Parameters
- $streamTimeout : int