src/Dto/OpinionFilterDto.php line 9

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Dto;
  4. use App\ParamConverter\ConverterQueryParams;
  5. class OpinionFilterDto implements ConverterQueryParams
  6. {
  7.     /**
  8.      * @var string|null
  9.      */
  10.     private ?string $opinionDateRange null;
  11.     /**
  12.      * @var bool|null
  13.      */
  14.     private ?bool $showOnlyRatedByMe null;
  15.     /**
  16.      * @var int|null
  17.      */
  18.     private ?int $showLastDays null;
  19.     /**
  20.      * @return string|null
  21.      */
  22.     public function getOpinionDateRange(): ?string
  23.     {
  24.         return $this->opinionDateRange;
  25.     }
  26.     /**
  27.      * @param string|null $opinionDateRange
  28.      *
  29.      * @return $this
  30.      */
  31.     public function setOpinionDateRange(?string $opinionDateRange): self
  32.     {
  33.         $this->opinionDateRange $opinionDateRange;
  34.         return $this;
  35.     }
  36.     /**
  37.      * @return bool|null
  38.      */
  39.     public function getShowOnlyRatedByMe(): ?bool
  40.     {
  41.         return $this->showOnlyRatedByMe;
  42.     }
  43.     /**
  44.      * @param bool|null $showOnlyRatedByMe
  45.      *
  46.      * @return $this
  47.      */
  48.     public function setShowOnlyRatedByMe(?bool $showOnlyRatedByMe): self
  49.     {
  50.         $this->showOnlyRatedByMe $showOnlyRatedByMe;
  51.         return $this;
  52.     }
  53.     /**
  54.      * @return int|null
  55.      */
  56.     public function getShowLastDays(): ?int
  57.     {
  58.         return $this->showLastDays;
  59.     }
  60.     /**
  61.      * @param int|null $showLastDays
  62.      *
  63.      * @return $this
  64.      */
  65.     public function setShowLastDays(?int $showLastDays): self
  66.     {
  67.         $this->showLastDays $showLastDays;
  68.         return $this;
  69.     }
  70. }