PHP Класс SimpleSoftwareIO\SMS\OutgoingMessage

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$attachImages array Array of attached images.
$data array The data that will be passed into the Illuminate View Factory.
$from string The number messages are being sent from.
$mms boolean Whether a message is a MMS or SMS.
$to array Array of numbers a message is being sent to.
$view string The view file to be used when composing a message.
$views Illuminate\View\Factory The Illuminate view factory.

Открытые методы

Метод Описание
__construct ( Illuminate\View\Factory $views ) Create a OutgoingMessage Instance.
attachImage ( string $image ) Attaches an image to a message.
composeMessage ( ) : Illuminate\View\Factory Composes a message.
data ( array $data ) Sets the data for the view file.
from ( string $number ) Sets the numbers messages will be sent from.
getAttachImages ( ) : array Returns the attached image.
getData ( ) : array Returns the view data.
getFrom ( ) : string Gets the from address.
getTo ( ) : array Returns the To addresses without the carriers.
getToWithCarriers ( ) : array Returns all numbers that a message is being sent to and includes their carriers.
getView ( ) : string Returns the current view file.Returns.
isMMS ( ) : boolean Returns if a message is a MMS.Returns.
to ( string $number, string $carrier = null ) Sets the to addresses.
view ( string $view ) Sets the view file to be loaded.

Описание методов

__construct() публичный Метод

Create a OutgoingMessage Instance.
public __construct ( Illuminate\View\Factory $views )
$views Illuminate\View\Factory

attachImage() публичный Метод

Attaches an image to a message.
public attachImage ( string $image )
$image string Path to image.

composeMessage() публичный Метод

Composes a message.
public composeMessage ( ) : Illuminate\View\Factory
Результат Illuminate\View\Factory

data() публичный Метод

Sets the data for the view file.
public data ( array $data )
$data array An array of values to be passed to the View Factory.

from() публичный Метод

Sets the numbers messages will be sent from.
public from ( string $number )
$number string Holds the number that messages

getAttachImages() публичный Метод

Returns the attached image.
public getAttachImages ( ) : array
Результат array

getData() публичный Метод

Returns the view data.
public getData ( ) : array
Результат array

getFrom() публичный Метод

Gets the from address.
public getFrom ( ) : string
Результат string

getTo() публичный Метод

Returns the To addresses without the carriers.
public getTo ( ) : array
Результат array

getToWithCarriers() публичный Метод

Returns all numbers that a message is being sent to and includes their carriers.
public getToWithCarriers ( ) : array
Результат array An array with numbers and carriers

getView() публичный Метод

Returns the current view file.Returns.
public getView ( ) : string
Результат string

isMMS() публичный Метод

Returns if a message is a MMS.Returns.
public isMMS ( ) : boolean
Результат boolean

to() публичный Метод

Sets the to addresses.
public to ( string $number, string $carrier = null )
$number string Holds the number that a message will be sent to.
$carrier string The carrier the number is on.

view() публичный Метод

Sets the view file to be loaded.
public view ( string $view )
$view string The desired view file

Описание свойств

$attachImages защищенное свойство

Array of attached images.
protected array $attachImages
Результат array

$data защищенное свойство

The data that will be passed into the Illuminate View Factory.
protected array $data
Результат array

$from защищенное свойство

The number messages are being sent from.
protected string $from
Результат string

$mms защищенное свойство

Whether a message is a MMS or SMS.
protected bool $mms
Результат boolean

$to защищенное свойство

Array of numbers a message is being sent to.
protected array $to
Результат array

$view защищенное свойство

The view file to be used when composing a message.
protected string $view
Результат string

$views защищенное свойство

The Illuminate view factory.
protected Factory,Illuminate\View $views
Результат Illuminate\View\Factory