snapshot schedule source data

This commit is contained in:
Yisroel Baum 2026-08-10 22:36:14 +03:00
parent 14fe2fcb46
commit f500bd6095
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
14 changed files with 84 additions and 87 deletions

View file

@ -2,14 +2,18 @@
namespace App\Schedule;
use App\Element\Element;
use DateTimeImmutable;
final readonly class ScheduleAssignment
{
/**
* @param list<string> $path
*/
public function __construct(
private int $id,
private Element $element,
private string $name,
private string $kind,
private array $path,
private DateTimeImmutable $scheduledDate,
private int $position,
) {}
@ -19,9 +23,22 @@ final readonly class ScheduleAssignment
return $this->id;
}
public function getElement(): Element
public function getName(): string
{
return $this->element;
return $this->name;
}
public function getKind(): string
{
return $this->kind;
}
/**
* @return list<string>
*/
public function getPath(): array
{
return $this->path;
}
public function getScheduledDate(): DateTimeImmutable