add node to scheduled node entity and dto
This commit is contained in:
parent
46d01aa813
commit
d47a0235d2
3 changed files with 17 additions and 5 deletions
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
namespace App\ScheduledNode;
|
||||
|
||||
use App\Node\Node;
|
||||
use App\Plan\Plan;
|
||||
use DateTimeImmutable;
|
||||
|
||||
|
|
@ -10,5 +11,6 @@ class CreateScheduledNodeDto
|
|||
public function __construct(
|
||||
public DateTimeImmutable $date,
|
||||
public Plan $plan,
|
||||
public Node $node,
|
||||
) {}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
namespace App\ScheduledNode;
|
||||
|
||||
use App\Node\Node;
|
||||
use App\Plan\Plan;
|
||||
use DateTimeImmutable;
|
||||
|
||||
|
|
@ -11,6 +12,7 @@ class ScheduledNode
|
|||
private int $id,
|
||||
private DateTimeImmutable $date,
|
||||
private Plan $plan,
|
||||
private Node $node,
|
||||
) {}
|
||||
|
||||
public function getId(): int
|
||||
|
|
@ -27,4 +29,9 @@ class ScheduledNode
|
|||
{
|
||||
return $this->date;
|
||||
}
|
||||
|
||||
public function getNode(): Node
|
||||
{
|
||||
return $this->node;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue