add set scheduling api
This commit is contained in:
parent
bdb266746d
commit
98ae9bf088
20 changed files with 935 additions and 1 deletions
22
backend/app/Schedule/CreateScheduleDto.php
Normal file
22
backend/app/Schedule/CreateScheduleDto.php
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
|
||||
namespace App\Schedule;
|
||||
|
||||
use App\Set\Set;
|
||||
use App\User\User;
|
||||
use DateTimeImmutable;
|
||||
|
||||
final readonly class CreateScheduleDto
|
||||
{
|
||||
/**
|
||||
* @param list<CreateScheduleAssignmentDto> $assignments
|
||||
*/
|
||||
public function __construct(
|
||||
public User $user,
|
||||
public Set $set,
|
||||
public string $elementKind,
|
||||
public DateTimeImmutable $startDate,
|
||||
public DateTimeImmutable $targetDate,
|
||||
public array $assignments,
|
||||
) {}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue