snapshot schedule source data
This commit is contained in:
parent
14fe2fcb46
commit
f500bd6095
14 changed files with 84 additions and 87 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue