PHP 클래스 SimpleSoftwareIO\SMS\OutgoingMessage

파일 보기 프로젝트 열기: simplesoftwareio/simple-sms 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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