ClearBowl/api/app/Repositories/UsersRepositoryInterface.php

26 lines
508 B
PHP

<?php
namespace App\Repositories;
use App\Models\User;
use Illuminate\Database\Eloquent\Collection;
interface UsersRepositoryInterface
{
public function getAll();
public function paginate($chunkSize);
public function create($data);
public function delete($id);
public function getById($userId);
public function getWhereEquals($field, $actual);
public function saveRecipe(int $userID, int $recipeID);
public function getRecipeHistory(int $userID, string $groupBy);
}