@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace LBHurtado\EngageSpark; |
| 4 | 4 | |
| 5 | -use Illuminate\Support\Arr; |
|
| 6 | 5 | use Illuminate\Notifications\Notification; |
| 6 | +use Illuminate\Support\Arr; |
|
| 7 | 7 | |
| 8 | 8 | class EngageSparkChannel |
| 9 | 9 | { |
@@ -63,6 +63,9 @@ |
||
| 63 | 63 | return \is_array($to) ? $to : [$to]; |
| 64 | 64 | } |
| 65 | 65 | |
| 66 | + /** |
|
| 67 | + * @param string[] $recipients |
|
| 68 | + */ |
|
| 66 | 69 | protected function sendMessage($recipients, EngageSparkMessage $message) |
| 67 | 70 | { |
| 68 | 71 | $this->setMode($message); |
@@ -78,7 +78,7 @@ |
||
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | /** |
| 81 | - * @param $mode |
|
| 81 | + * @param string $mode |
|
| 82 | 82 | * @return mixed |
| 83 | 83 | */ |
| 84 | 84 | public function getEndPoint($mode) |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace LBHurtado\EngageSpark; |
| 4 | 4 | |
| 5 | -use Illuminate\Support\Arr; |
|
| 6 | 5 | use GuzzleHttp\Client as HttpClient; |
| 6 | +use Illuminate\Support\Arr; |
|
| 7 | 7 | use LBHurtado\EngageSpark\Classes\ServiceMode; |
| 8 | 8 | |
| 9 | 9 | class EngageSpark |
@@ -27,7 +27,6 @@ |
||
| 27 | 27 | /** |
| 28 | 28 | * Create a new event instance. |
| 29 | 29 | * |
| 30 | - * @param SendHttpApiParams $params |
|
| 31 | 30 | */ |
| 32 | 31 | public function __construct(string $mobile, string $message, string $senderId) |
| 33 | 32 | { |
@@ -3,12 +3,10 @@ |
||
| 3 | 3 | namespace LBHurtado\EngageSpark\Events; |
| 4 | 4 | |
| 5 | 5 | use Illuminate\Broadcasting\Channel; |
| 6 | -use Illuminate\Queue\SerializesModels; |
|
| 6 | +use Illuminate\Broadcasting\InteractsWithSockets; |
|
| 7 | 7 | use Illuminate\Broadcasting\PrivateChannel; |
| 8 | -use Illuminate\Broadcasting\PresenceChannel; |
|
| 9 | 8 | use Illuminate\Foundation\Events\Dispatchable; |
| 10 | -use Illuminate\Broadcasting\InteractsWithSockets; |
|
| 11 | -use Illuminate\Contracts\Broadcasting\ShouldBroadcast; |
|
| 9 | +use Illuminate\Queue\SerializesModels; |
|
| 12 | 10 | |
| 13 | 11 | |
| 14 | 12 | class MessageSent |