add exceptions, fix auth, implement response, sanitize recipient and sender

This commit is contained in:
2022-06-24 14:35:17 +02:00
parent 0cdfd0185b
commit 50cf733101
17 changed files with 286 additions and 76 deletions

View File

@ -12,9 +12,9 @@ class SmsMessage extends StringValueObject
const GSM_7BIT = '7-bit';
const GSM_UCS2 = 'ucs-2';
public function __construct(string $value)
public function __construct(string $number)
{
parent::__construct($value);
parent::__construct( $number);
$smsLength = new SmsLength($this->value);
$smsLength->validate();