/home/techb158/ileadtechnology.com/SSM/vendor/nexmo/client-core/src/Message
NameSizeModeActions
Callback/-0755rm
Response/-0755rm
Shortcode/-0755rm
AutoDetect.php8040644editdlrm
Binary.php11110644editdlrm
Client.php121300644editdlrm
CollectionTrait.php1740644editdlrm
EncodingDetector.php23170644editdlrm
InboundMessage.php59530644editdlrm
Message.php98960644editdlrm
MessageInterface.php3300644editdlrm
Query.php3110644editdlrm
Shortcode.php20530644editdlrm
Text.php7560644editdlrm
Unicode.php9320644editdlrm
Vcal.php9260644editdlrm
Vcard.php9230644editdlrm
Wap.php13490644editdlrm
Edit: /home/techb158/ileadtechnology.com/SSM/vendor/nexmo/client-core/src/Message/Shortcode.php (2053B)
to = $to; $this->custom = $custom; $this->options = $options; } public function setCustom($custom) { $this->custom = $custom; } public function setOptions($options) { $this->options = $options; } public function getType() { return $this->type; } public function getRequestData() { // Options, then custom, then to. This is the priority // we want so that people can't overwrite to with a custom param return $this->options + $this->custom + [ 'to' => $this->to ]; } public static function createMessageFromArray($data) { if (!isset($data['type'])) { throw new Exception('No type provided when creating a shortcode message'); } if (!isset($data['to'])) { throw new Exception('No to provided when creating a shortcode message'); } $data['type'] = strtolower($data['type']); if ($data['type'] === '2fa') { $m = new TwoFactor($data['to']); } elseif ($data['type'] === 'marketing') { $m = new Marketing($data['to']); } elseif ($data['type'] === 'alert') { $m = new Alert($data['to']); } if (isset($data['custom'])) { $m->setCustom($data['custom']); } if (isset($data['options'])) { $m->setOptions($data['options']); } return $m; } }