mirror of
https://github.com/bitinflow/expose.git
synced 2026-04-28 10:36:17 +00:00
wip
This commit is contained in:
18
app/Contracts/UserRepository.php
Normal file
18
app/Contracts/UserRepository.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace App\Contracts;
|
||||
|
||||
use React\Promise\PromiseInterface;
|
||||
|
||||
interface UserRepository
|
||||
{
|
||||
public function getUsers(): PromiseInterface;
|
||||
|
||||
public function getUserById($id): PromiseInterface;
|
||||
|
||||
public function getUserByToken(string $authToken): PromiseInterface;
|
||||
|
||||
public function storeUser(array $data): PromiseInterface;
|
||||
|
||||
public function deleteUser($id): PromiseInterface;
|
||||
}
|
||||
Reference in New Issue
Block a user