48 lines
829 B
PHP
48 lines
829 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,
|
|
private bool $completed,
|
|
) {}
|
|
|
|
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;
|
|
}
|
|
|
|
public function getCompleted(): bool
|
|
{
|
|
return $this->completed;
|
|
}
|
|
|
|
public function setCompleted(bool $complete): void
|
|
{
|
|
$this->completed = $complete;
|
|
}
|
|
}
|