PHP 클래스 SimpleSoftwareIO\SMS\SMS

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

보호된 프로퍼티들

프로퍼티 타입 설명
$container Illuminate\Container\Container The IOC Container.
$driver SimpleSoftwareIO\SMS\Drivers\DriverInterface The Driver Interface instance.
$from string The global from address.
$queue Illuminate\Queue\QueueManager Holds the queue instance.

공개 메소드들

메소드 설명
__construct ( SimpleSoftwareIO\SMS\Drivers\DriverInterface $driver ) Creates the SMS instance.
alwaysFrom ( $number ) Sets the number that message should always be sent from.
checkMessages ( array $options = [] ) : array Queries the provider for a list of messages.
driver ( $driver ) Changes the set SMS driver.
getMessage ( $messageId ) : IncomingMessage Gets a message by it's ID.
handleQueuedMessage ( Illuminate\Queue\Jobs\Job $job, array $data ) Handles a queue message.
later ( integer $delay, string $view, array $data, Closure | string $callback, null | string $queue = null ) Queues a message to be sent a later time.
laterOn ( null | string $queue, integer $delay, string $view, array $data, Closure | string $callback ) Queues a message to be sent a later time on a given queue.
queue ( string $view, array $data, Closure | string $callback, null | string $queue = null ) Queues a SMS message.
queueOn ( null | string $queue, string $view, array $data, Closure | string $callback ) Queues a SMS message to a given queue.
receive ( ) : IncomingMessage Receives a SMS via a push request.
send ( string $view, array $data, Closure $callback ) : OutgoingMessage Send a SMS.
setContainer ( Illuminate\Container\Container $container ) Sets the IoC container.
setQueue ( Illuminate\Queue\QueueManager $queue ) Set the queue manager instance.

보호된 메소드들

메소드 설명
buildQueueCallable ( Closure | string $callback ) : string Builds the callable for a queue.
createOutgoingMessage ( ) : OutgoingMessage Creates a new Message instance.
getQueuedCallable ( array $data ) : mixed Gets the callable for a queued message.

메소드 상세

__construct() 공개 메소드

Creates the SMS instance.
public __construct ( SimpleSoftwareIO\SMS\Drivers\DriverInterface $driver )
$driver SimpleSoftwareIO\SMS\Drivers\DriverInterface

alwaysFrom() 공개 메소드

Sets the number that message should always be sent from.
public alwaysFrom ( $number )
$number

buildQueueCallable() 보호된 메소드

Builds the callable for a queue.
protected buildQueueCallable ( Closure | string $callback ) : string
$callback Closure | string The callback to be serialized
리턴 string

checkMessages() 공개 메소드

Queries the provider for a list of messages.
public checkMessages ( array $options = [] ) : array
$options array The options to pass onto a provider. See each provider for a list of options.
리턴 array Returns an array of IncomingMessage objects.

createOutgoingMessage() 보호된 메소드

Creates a new Message instance.
protected createOutgoingMessage ( ) : OutgoingMessage
리턴 OutgoingMessage

driver() 공개 메소드

Changes the set SMS driver.
public driver ( $driver )
$driver

getMessage() 공개 메소드

Gets a message by it's ID.
public getMessage ( $messageId ) : IncomingMessage
$messageId The requested messageId.
리턴 IncomingMessage

getQueuedCallable() 보호된 메소드

Gets the callable for a queued message.
protected getQueuedCallable ( array $data ) : mixed
$data array
리턴 mixed

handleQueuedMessage() 공개 메소드

Handles a queue message.
public handleQueuedMessage ( Illuminate\Queue\Jobs\Job $job, array $data )
$job Illuminate\Queue\Jobs\Job
$data array

later() 공개 메소드

Queues a message to be sent a later time.
public later ( integer $delay, string $view, array $data, Closure | string $callback, null | string $queue = null )
$delay integer The desired delay in seconds
$view string The desired view.
$data array An array of data to fill the view.
$callback Closure | string The callback to run on the Message class.
$queue null | string The desired queue to push the message to.

laterOn() 공개 메소드

Queues a message to be sent a later time on a given queue.
public laterOn ( null | string $queue, integer $delay, string $view, array $data, Closure | string $callback )
$queue null | string The desired queue to push the message to.
$delay integer The desired delay in seconds
$view string The desired view.
$data array An array of data to fill the view.
$callback Closure | string The callback to run on the Message class.

queue() 공개 메소드

Queues a SMS message.
public queue ( string $view, array $data, Closure | string $callback, null | string $queue = null )
$view string The desired view.
$data array An array of data to fill the view.
$callback Closure | string The callback to run on the Message class.
$queue null | string The desired queue to push the message to.

queueOn() 공개 메소드

Queues a SMS message to a given queue.
public queueOn ( null | string $queue, string $view, array $data, Closure | string $callback )
$queue null | string The desired queue to push the message to.
$view string The desired view.
$data array An array of data to fill the view.
$callback Closure | string The callback to run on the Message class.

receive() 공개 메소드

Receives a SMS via a push request.
public receive ( ) : IncomingMessage
리턴 IncomingMessage

send() 공개 메소드

Send a SMS.
public send ( string $view, array $data, Closure $callback ) : OutgoingMessage
$view string The desired view.
$data array The data that needs to be passed into the view.
$callback Closure The methods that you wish to fun on the message.
리턴 OutgoingMessage The outgoing message that was sent.

setContainer() 공개 메소드

Sets the IoC container.
public setContainer ( Illuminate\Container\Container $container )
$container Illuminate\Container\Container

setQueue() 공개 메소드

Set the queue manager instance.
public setQueue ( Illuminate\Queue\QueueManager $queue )
$queue Illuminate\Queue\QueueManager

프로퍼티 상세

$container 보호되어 있는 프로퍼티

The IOC Container.
protected Container,Illuminate\Container $container
리턴 Illuminate\Container\Container

$driver 보호되어 있는 프로퍼티

The Driver Interface instance.
protected DriverInterface,SimpleSoftwareIO\SMS\Drivers $driver
리턴 SimpleSoftwareIO\SMS\Drivers\DriverInterface

$from 보호되어 있는 프로퍼티

The global from address.
protected string $from
리턴 string

$queue 보호되어 있는 프로퍼티

Holds the queue instance.
protected QueueManager,Illuminate\Queue $queue
리턴 Illuminate\Queue\QueueManager