whoami7 - Manager
:
/
home
/
kckglobal
/
www
/
portal
/
vendor
/
vonage
/
client-core
/
src
/
Messages
/
Channel
/
WhatsApp
/
Upload File:
files >> /home/kckglobal/www/portal/vendor/vonage/client-core/src/Messages/Channel/WhatsApp/WhatsAppText.php
<?php namespace Vonage\Messages\Channel\WhatsApp; use Vonage\Messages\MessageTraits\ContextTrait; use Vonage\Messages\MessageTraits\TextTrait; use Vonage\Messages\Channel\BaseMessage; class WhatsAppText extends BaseMessage { use ContextTrait; use TextTrait; protected string $subType = BaseMessage::MESSAGES_SUBTYPE_TEXT; protected string $channel = 'whatsapp'; protected bool $validatesE164 = true; public function __construct( string $to, string $from, string $text ) { $this->to = $to; $this->from = $from; $this->text = $text; } public function validatesE164(): bool { return $this->validatesE164; } public function toArray(): array { $returnArray = $this->getBaseMessageUniversalOutputArray(); $returnArray['text'] = $this->getText(); $returnArray['context'] = $this->context ?? null; return $returnArray; } }
Copyright ©2021 || Defacer Indonesia