<?php
namespace App\Dto;
use App\Entity\Profile\Genders;
use App\Specification\ElasticSearch\ISpecification;
use Happyr\DoctrineSpecification\Filter\Filter;
class ProfileListSpecification
{
public function __construct(
private ?Filter $spec,
private ?ISpecification $recommendationSpec,
private ?array $additionalSpecs = null,
private array $genders = [Genders::FEMALE]
) {}
public function spec(): ?Filter
{
return $this->spec;
}
public function recommendationSpec(): ?ISpecification
{
return $this->recommendationSpec;
}
public function additionalSpecs(): ?array
{
return $this->additionalSpecs;
}
public function genders(): ?array
{
return $this->genders;
}
}