From b619b24cf443908a4c61e80a6586910548e7c192 Mon Sep 17 00:00:00 2001 From: Jakub Theimer Date: Thu, 27 Jan 2022 14:20:52 +0100 Subject: [PATCH] swap model for interface return type --- src/CookieConsentHistory.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/CookieConsentHistory.php b/src/CookieConsentHistory.php index 500faa2..5937fab 100644 --- a/src/CookieConsentHistory.php +++ b/src/CookieConsentHistory.php @@ -3,9 +3,9 @@ namespace Dystcz\CookieConsentHistory; use Dystcz\CookieConsentHistory\Actions\SaveCookieConsent; +use Dystcz\CookieConsentHistory\Contracts\StoresCookieConsent; use Dystcz\CookieConsentHistory\Data\CookieConsentData; use Dystcz\CookieConsentHistory\Http\Controllers\CookieConsentsController; -use Dystcz\CookieConsentHistory\Models\CookieConsent; use Illuminate\Support\Facades\Config; use Illuminate\Support\Facades\Route; @@ -16,9 +16,9 @@ class CookieConsentHistory * * @param CookieConsentData $data * - * @return CookieConsent + * @return StoresCookieConsent */ - public function save(CookieConsentData $data): CookieConsent + public function save(CookieConsentData $data): StoresCookieConsent { return (new SaveCookieConsent)->handle($data); }