Свойство | Type | Description | |
---|---|---|---|
$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. |
Méthode | Description | |
---|---|---|
__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 ) : |
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 ( ) : |
Receives a SMS via a push request. | |
send ( string $view, array $data, Closure $callback ) : |
Send a SMS. | |
setContainer ( Illuminate\Container\Container $container ) | Sets the IoC container. | |
setQueue ( Illuminate\Queue\QueueManager $queue ) | Set the queue manager instance. |
Méthode | Description | |
---|---|---|
buildQueueCallable ( Closure | string $callback ) : string | Builds the callable for a queue. | |
createOutgoingMessage ( ) : |
Creates a new Message instance. | |
getQueuedCallable ( array $data ) : mixed | Gets the callable for a queued message. |
public __construct ( SimpleSoftwareIO\SMS\Drivers\DriverInterface $driver ) | ||
$driver | SimpleSoftwareIO\SMS\Drivers\DriverInterface |
public alwaysFrom ( $number ) | ||
$number |
public checkMessages ( array $options = [] ) : array | ||
$options | array | The options to pass onto a provider. See each provider for a list of options. |
Résultat | array | Returns an array of IncomingMessage objects. |
protected createOutgoingMessage ( ) : |
||
Résultat |
public getMessage ( $messageId ) : |
||
$messageId | The requested messageId. | |
Résultat |
protected getQueuedCallable ( array $data ) : mixed | ||
$data | array | |
Résultat | mixed |
public handleQueuedMessage ( Illuminate\Queue\Jobs\Job $job, array $data ) | ||
$job | Illuminate\Queue\Jobs\Job | |
$data | array |
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. |
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. |
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. |
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. |
public receive ( ) : |
||
Résultat |
public setContainer ( Illuminate\Container\Container $container ) | ||
$container | Illuminate\Container\Container |
public setQueue ( Illuminate\Queue\QueueManager $queue ) | ||
$queue | Illuminate\Queue\QueueManager |
protected Container,Illuminate\Container $container | ||
Résultat | Illuminate\Container\Container |
protected DriverInterface,SimpleSoftwareIO\SMS\Drivers $driver | ||
Résultat | SimpleSoftwareIO\SMS\Drivers\DriverInterface |