⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.1
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
work
/
modules
/
Sms
/
Core
/
Drivers
/
Edit File: Driver.php
<?php namespace Modules\Sms\Core\Drivers; use Illuminate\Support\Arr; use Modules\Sms\Core\Contracts\SMS; use Modules\Sms\Core\Exceptions\SmsException; abstract class Driver implements SMS { /** * The recipient of the message. * * @var string */ protected $recipient; /** * The message to send. * * @var string */ protected $message; /** * {@inheritdoc} */ abstract public function send(); /** * Set the recipient of the message. * * @param string $recipient * * @throws \Modules\Sms\Core\Exceptions\SmsException * * @return $this */ public function to(string $recipient) { throw_if(is_null($recipient), SmsException::class, 'Recipients cannot be empty'); $this->recipient = $recipient; return $this; } public function content(string $message) { throw_if(empty($message), SmsException::class, 'Message text is required'); $this->message = $message; return $this; } }
Simpan