first commit
This commit is contained in:
31
laravel/app/Contracts/TaskServiceInterface.php
Normal file
31
laravel/app/Contracts/TaskServiceInterface.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Contracts;
|
||||
|
||||
use App\Models\Task;
|
||||
use Illuminate\Contracts\Pagination\LengthAwarePaginator;
|
||||
use Throwable;
|
||||
|
||||
interface TaskServiceInterface
|
||||
{
|
||||
/**
|
||||
* @throws Throwable
|
||||
*/
|
||||
public function list(RequestFilterInterface $filters): LengthAwarePaginator;
|
||||
|
||||
/**
|
||||
* @throws Throwable
|
||||
*/
|
||||
public function create(array $data): Task;
|
||||
|
||||
public function show(Task $task): Task;
|
||||
|
||||
/**
|
||||
* @throws Throwable
|
||||
*/
|
||||
public function update(Task $task, array $data): Task;
|
||||
|
||||
public function delete(Task $task): void;
|
||||
}
|
||||
Reference in New Issue
Block a user