File tree Expand file tree Collapse file tree
src/Utopia/Messaging/Adapter/SMS
tests/Messaging/Adapter/SMS Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ class Inforu extends SMSAdapter
1717 * @param string $senderId Sender ID
1818 */
1919 public function __construct (
20+ private string $ senderId ,
2021 private string $ apiToken ,
21- private string $ senderId
2222 ) {
2323 }
2424
@@ -46,8 +46,6 @@ protected function process(SMSMessage $message): array
4646 $ message ->getTo ()
4747 );
4848
49- fwrite (STDOUT , json_encode ($ recipients , JSON_PRETTY_PRINT ));
50-
5149 $ result = $ this ->request (
5250 method: 'POST ' ,
5351 url: 'https://capi.inforu.co.il/api/v2/SMS/SendSms ' ,
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ class InforuTest extends Base
1414 public function testSendSMS (): void
1515 {
1616 $ sender = new Inforu (
17+ senderId: \getenv ('INFORU_SENDER_ID ' ),
1718 apiToken: \getenv ('INFORU_API_TOKEN ' ),
18- senderId: \getenv ('INFORU_SENDER_ID ' )
1919 );
2020
2121 $ message = new SMS (
You can’t perform that action at this time.
0 commit comments