Add concern

This commit is contained in:
philipp lang 2021-05-13 22:51:26 +02:00
parent 4383630210
commit 30f8a301c2
2 changed files with 13 additions and 1 deletions

View File

@ -8,8 +8,9 @@ use Illuminate\Support\Str;
use App\Nami\Exceptions\TooManyLoginAttemptsException; use App\Nami\Exceptions\TooManyLoginAttemptsException;
use Illuminate\Support\Facades\Http; use Illuminate\Support\Facades\Http;
use Illuminate\Support\Collection; use Illuminate\Support\Collection;
use Zoomyboy\LaravelNami\Concerns\NamiData;
class Api { class Api implements NamiData {
public $cookie; public $cookie;
public $loggedIn = null; public $loggedIn = null;

11
src/Concerns/NamiData.php Normal file
View File

@ -0,0 +1,11 @@
<?php
namespace Zoomyboy\LaravelNami\Concerns;
use Illuminate\Support\Collection;
interface NamiData {
public function nationalities(): Collection;
}