| 1 | <?php |
||
| 9 | class SendHttpApiParams implements HttpApiParams |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var EngageSpark |
||
| 13 | */ |
||
| 14 | protected $service; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | protected $mobile; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | protected $message; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var string |
||
| 28 | */ |
||
| 29 | protected $senderId; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @var string |
||
| 33 | */ |
||
| 34 | protected $recipientType = 'mobile_number'; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * SendParams constructor. |
||
| 38 | * @param $service |
||
| 39 | * @param $mobile |
||
| 40 | * @param $message |
||
| 41 | */ |
||
| 42 | public function __construct(EngageSpark $service, string $mobile, string $message, string $senderId = null) |
||
| 49 | |||
| 50 | public function toArray(): array |
||
| 60 | |||
| 61 | protected function setSenderId(EngageSpark $service, string $senderId = null) |
||
| 67 | } |
||
| 68 |