From be774d7a19641e52cc256e9b82db5126374a12f1 Mon Sep 17 00:00:00 2001 From: Ilesanmi Olawale Adedotun Date: Fri, 1 Jul 2022 22:17:55 +0100 Subject: [PATCH] chore: add doc-block to facade --- src/Facades/Termii.php | 9 +++++++++ src/Termii.php | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/Facades/Termii.php b/src/Facades/Termii.php index 3aa6edd..fae4ea9 100644 --- a/src/Facades/Termii.php +++ b/src/Facades/Termii.php @@ -5,6 +5,15 @@ use ManeOlawale\Laravel\Termii\Termii as TermiiClass; use Illuminate\Support\Facades\Facade; +/** + * @method self usingClient(\ManeOlawale\Termii\Client $client) + * @method \ManeOlawale\Termii\Client client() + * @method \ManeOlawale\Laravel\Termii\Entities\Token OTP(string $key, string $signature = null) + * @method \GuzzleHttp\Psr7\Response fallbackResponse(\GuzzleHttp\Psr7\Response $response = null) + * @method self mock(string $alias, \ManeOlawale\Laravel\Termii\Testing\Sequence $sequence = null) + * @method \ManeOlawale\Laravel\Termii\Testing\TermiiFake fake(array $fakes = null) + * @method array send(string $to, string $message, string $from = null, string $channel = null) + */ class Termii extends Facade { /** diff --git a/src/Termii.php b/src/Termii.php index 5b7587d..0fbb5f4 100644 --- a/src/Termii.php +++ b/src/Termii.php @@ -91,6 +91,7 @@ public function send(string $to, string $message, string $from = null, string $c * Switch termii to test mode * * @param array + * @return \ManeOlawale\Laravel\Termii\Testing\TermiiFake */ public function fake(array $fakes = null) { @@ -115,7 +116,7 @@ public function fake(array $fakes = null) * * @param string $alias * @param \ManeOlawale\Laravel\Termii\Testing\Sequence $sequence - * @return void + * @return self */ public function mock(string $alias, Sequence $sequence = null) {