add set scheduling api
This commit is contained in:
parent
bdb266746d
commit
98ae9bf088
20 changed files with 935 additions and 1 deletions
17
backend/app/Schedule/ScheduleRepository.php
Normal file
17
backend/app/Schedule/ScheduleRepository.php
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
namespace App\Schedule;
|
||||
|
||||
use App\User\User;
|
||||
|
||||
interface ScheduleRepository
|
||||
{
|
||||
public function create(CreateScheduleDto $dto): Schedule;
|
||||
|
||||
public function findForUser(int $id, User $user): ?Schedule;
|
||||
|
||||
/**
|
||||
* @return list<Schedule>
|
||||
*/
|
||||
public function findAllForUser(User $user): array;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue