move instantiation of date time immutable to use case. request gets a string
This commit is contained in:
parent
d7fdbc20ee
commit
c32087c35d
4 changed files with 8 additions and 10 deletions
|
|
@ -2,12 +2,10 @@
|
|||
|
||||
namespace App\ScheduledNode\UseCases;
|
||||
|
||||
use DateTimeImmutable;
|
||||
|
||||
class CreateScheduledNodeRequest
|
||||
{
|
||||
public function __construct(
|
||||
public ?DateTimeImmutable $date,
|
||||
public ?string $date,
|
||||
public ?int $planId,
|
||||
) {}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue