<?php
declare(strict_types=1);
namespace App\Dto;
use App\ParamConverter\ConverterQueryParams;
class OpinionFilterDto implements ConverterQueryParams
{
/**
* @var string|null
*/
private ?string $opinionDateRange = null;
/**
* @var bool|null
*/
private ?bool $showOnlyRatedByMe = null;
/**
* @var int|null
*/
private ?int $showLastDays = null;
/**
* @return string|null
*/
public function getOpinionDateRange(): ?string
{
return $this->opinionDateRange;
}
/**
* @param string|null $opinionDateRange
*
* @return $this
*/
public function setOpinionDateRange(?string $opinionDateRange): self
{
$this->opinionDateRange = $opinionDateRange;
return $this;
}
/**
* @return bool|null
*/
public function getShowOnlyRatedByMe(): ?bool
{
return $this->showOnlyRatedByMe;
}
/**
* @param bool|null $showOnlyRatedByMe
*
* @return $this
*/
public function setShowOnlyRatedByMe(?bool $showOnlyRatedByMe): self
{
$this->showOnlyRatedByMe = $showOnlyRatedByMe;
return $this;
}
/**
* @return int|null
*/
public function getShowLastDays(): ?int
{
return $this->showLastDays;
}
/**
* @param int|null $showLastDays
*
* @return $this
*/
public function setShowLastDays(?int $showLastDays): self
{
$this->showLastDays = $showLastDays;
return $this;
}
}