add plan to scheduled node
This commit is contained in:
parent
fd0ee57149
commit
412a74e390
5 changed files with 15 additions and 0 deletions
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
namespace App\ScheduledNode;
|
||||
|
||||
use App\Plan\Plan;
|
||||
use DateTimeImmutable;
|
||||
|
||||
class ScheduledNode
|
||||
|
|
@ -9,5 +10,11 @@ class ScheduledNode
|
|||
public function __construct(
|
||||
private int $id,
|
||||
private DateTimeImmutable $date,
|
||||
private Plan $plan,
|
||||
) {}
|
||||
|
||||
public function getPlan(): Plan
|
||||
{
|
||||
return $this->plan;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue