add set scheduling api
This commit is contained in:
parent
bdb266746d
commit
98ae9bf088
20 changed files with 935 additions and 1 deletions
36
backend/app/Schedule/ScheduleAssignment.php
Normal file
36
backend/app/Schedule/ScheduleAssignment.php
Normal 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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue