feat: filter for feedbacks, code cleanup

This commit is contained in:
Björn Fromme
2024-10-28 16:19:45 +01:00
parent 49faa1eb25
commit a8ccdc8775
11 changed files with 297 additions and 27 deletions
+59
View File
@@ -0,0 +1,59 @@
<?php
namespace App\Model;
class FeedbackFilterDto extends AbstractFilterDto
{
protected ?string $name = null;
protected ?\DateTimeImmutable $dateFrom = null;
protected ?\DateTimeImmutable $dateTo = null;
protected ?int $averageRating = null;
public function getName(): ?string
{
return $this->name;
}
public function setName(?string $name): static
{
$this->name = $name;
return $this;
}
public function getDateFrom(): ?\DateTimeImmutable
{
return $this->dateFrom;
}
public function setDateFrom(?\DateTimeImmutable $dateFrom): static
{
$this->dateFrom = $dateFrom;
return $this;
}
public function getDateTo(): ?\DateTimeImmutable
{
return $this->dateTo;
}
public function setDateTo(?\DateTimeImmutable $dateTo): static
{
$this->dateTo = $dateTo;
return $this;
}
public function getAverageRating(): ?int
{
return $this->averageRating;
}
public function setAverageRating(?int $averageRating): static
{
$this->averageRating = $averageRating;
return $this;
}
}