diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/SMS/SMS.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/SMS/SMS.php b/src/SMS/SMS.php index 0e4ad34..16b18be 100644 --- a/src/SMS/SMS.php +++ b/src/SMS/SMS.php @@ -8,9 +8,10 @@ abstract class SMS implements \JsonSerializable protected $from; protected $message; - public function __construct(string $sender) + public function __construct(string $sender, string $message) { $this->from = $sender; + $this->message = $message; } public function setMessage(string $message): void @@ -21,6 +22,10 @@ abstract class SMS implements \JsonSerializable { $this->prio = $priority; } + public function setSender(string $sender): void + { + $this->from = $sender; + } public function jsonSerialize(): \stdClass { $returnObject = new \stdClass(); |