30 lines
479 B
PHP
30 lines
479 B
PHP
<?php
|
|
|
|
namespace App\ScheduledNode;
|
|
|
|
use App\Plan\Plan;
|
|
use DateTimeImmutable;
|
|
|
|
class ScheduledNode
|
|
{
|
|
public function __construct(
|
|
private int $id,
|
|
private DateTimeImmutable $date,
|
|
private Plan $plan,
|
|
) {}
|
|
|
|
public function getId(): int
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
public function getPlan(): Plan
|
|
{
|
|
return $this->plan;
|
|
}
|
|
|
|
public function getDate(): DateTimeImmutable
|
|
{
|
|
return $this->date;
|
|
}
|
|
}
|