Goal-Calibration/app/ScheduledNode/ScheduledNode.php

37 lines
603 B
PHP

<?php
namespace App\ScheduledNode;
use App\Node\Node;
use App\Plan\Plan;
use DateTimeImmutable;
class ScheduledNode
{
public function __construct(
private int $id,
private DateTimeImmutable $date,
private Plan $plan,
private Node $node,
) {}
public function getId(): int
{
return $this->id;
}
public function getPlan(): Plan
{
return $this->plan;
}
public function getDate(): DateTimeImmutable
{
return $this->date;
}
public function getNode(): Node
{
return $this->node;
}
}