24 $this->socketTimeout = $socketTimeout;
34 $this->streamTimeout = $streamTimeout;
49 return get_called_class();
62 abstract public function getId();
94 $from = isset($fromList[0]) ? $fromList[0][
'id'] :
null;
96 foreach ($fromList as $item)
98 if (!preg_match(
'#^[0-9]+$#', $item[
'id']))
113 if (!is_array($fromList))
118 foreach ($fromList as $item)
120 if (isset($item[
'id']) && $item[
'id'])
136 foreach ($fromList as $item)
138 if ($from === $item[
'id'])
165 return $this->
isConfigurable() ?
'/crm/configs/sms/?sender='.$this->getId() :
'';
Providers Initiator $initiator
sendMessage(array $messageFieldsFields)
Providers Informant $informant
setSocketTimeout(int $socketTimeout)
prepareMessageBodyForSave(string $text)
setStreamTimeout(int $streamTimeout)
prepareMessageBodyForSend(string $text)
static resolveStatus($serviceStatus)