add find by user method in plan repo
This commit is contained in:
parent
ec4dca87a6
commit
07e34ffd46
3 changed files with 55 additions and 0 deletions
|
|
@ -2,8 +2,14 @@
|
|||
|
||||
namespace App\Plan;
|
||||
|
||||
use App\User\User;
|
||||
|
||||
interface PlanRepository
|
||||
{
|
||||
public function create(CreatePlanDto $dto): Plan;
|
||||
public function find(int $id): ?Plan;
|
||||
/**
|
||||
* @return Plan[]
|
||||
*/
|
||||
public function findByUser(User $user): array;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue