add set scheduling api

This commit is contained in:
Yisroel Baum 2026-08-10 20:05:53 +03:00
parent bdb266746d
commit 98ae9bf088
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
20 changed files with 935 additions and 1 deletions

View file

@ -0,0 +1,36 @@
<?php
namespace App\Schedule;
use App\Element\Element;
use DateTimeImmutable;
final readonly class ScheduleAssignment
{
public function __construct(
private int $id,
private Element $element,
private DateTimeImmutable $scheduledDate,
private int $position,
) {}
public function getId(): int
{
return $this->id;
}
public function getElement(): Element
{
return $this->element;
}
public function getScheduledDate(): DateTimeImmutable
{
return $this->scheduledDate;
}
public function getPosition(): int
{
return $this->position;
}
}