diff options
author | Hannes Kindströmmer <hannes@kindstrommer.se> | 2017-03-01 10:42:26 +0100 |
---|---|---|
committer | Hannes Kindströmmer <hannes@kindstrommer.se> | 2017-03-01 10:42:26 +0100 |
commit | 4c7895fa369872667aa93eabeea5bcce224f5422 (patch) | |
tree | 8b246828e319a451e343f6f5a5a79de95bfeb31e /src | |
parent | d58034be047cbe09136aea8caef8f1cb6735f46c (diff) | |
download | ip1-php-sdk-4c7895fa369872667aa93eabeea5bcce224f5422.zip ip1-php-sdk-4c7895fa369872667aa93eabeea5bcce224f5422.tar.gz ip1-php-sdk-4c7895fa369872667aa93eabeea5bcce224f5422.tar.bz2 |
Add required functions to SMS
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(); |