@@ -73,11 +73,17 @@ |
||
| 73 | 73 | } |
| 74 | 74 | } |
| 75 | 75 | |
| 76 | + /** |
|
| 77 | + * @param string $mode |
|
| 78 | + */ |
|
| 76 | 79 | public function getEndPoint($mode) |
| 77 | 80 | { |
| 78 | 81 | return Arr::get($this->end_points, $mode, $this->end_points['sms']); |
| 79 | 82 | } |
| 80 | 83 | |
| 84 | + /** |
|
| 85 | + * @param string $mode |
|
| 86 | + */ |
|
| 81 | 87 | public function getWebHook($mode) |
| 82 | 88 | { |
| 83 | 89 | return Arr::get($this->web_hooks, $mode, $this->web_hooks['sms']); |
@@ -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 | |
| 8 | 8 | class EngageSpark |
| 9 | 9 | { |
@@ -69,6 +69,9 @@ |
||
| 69 | 69 | return \is_array($to) ? $to : [$to]; |
| 70 | 70 | } |
| 71 | 71 | |
| 72 | + /** |
|
| 73 | + * @param string[] $recipients |
|
| 74 | + */ |
|
| 72 | 75 | protected function sendMessage($recipients, EngageSparkMessage $message) |
| 73 | 76 | { |
| 74 | 77 | // if (\mb_strlen($message->content) > 800) { |
@@ -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 | { |