add food vendor tests
This commit is contained in:
parent
63bf367ab0
commit
a7bec45c48
8 changed files with 39 additions and 53 deletions
|
@ -20,9 +20,6 @@ class FoodOrder
|
|||
#[ORM\CustomIdGenerator(class: UlidGenerator::class)]
|
||||
private Ulid|null $id = null;
|
||||
|
||||
#[ORM\Column]
|
||||
private DateTimeImmutable $createdAt;
|
||||
|
||||
#[ORM\Column(nullable: true)]
|
||||
private DateTimeImmutable|null $closedAt = null;
|
||||
|
||||
|
@ -38,7 +35,6 @@ class FoodOrder
|
|||
|
||||
public function __construct()
|
||||
{
|
||||
$this->createdAt = new DateTimeImmutable;
|
||||
$this->orderItems = new ArrayCollection;
|
||||
}
|
||||
|
||||
|
@ -47,16 +43,9 @@ class FoodOrder
|
|||
return $this->id;
|
||||
}
|
||||
|
||||
public function getCreatedAt(): DateTimeImmutable|null
|
||||
public function getCreatedAt(): DateTimeImmutable
|
||||
{
|
||||
return $this->createdAt;
|
||||
}
|
||||
|
||||
public function setCreatedAt(DateTimeImmutable $createdAt): static
|
||||
{
|
||||
$this->createdAt = $createdAt;
|
||||
|
||||
return $this;
|
||||
return $this->id->getDateTime();
|
||||
}
|
||||
|
||||
public function getClosedAt(): DateTimeImmutable|null
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue