src/Dto/ProfileListSpecification.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Dto;
  3. use App\Entity\Profile\Genders;
  4. use App\Specification\ElasticSearch\ISpecification;
  5. use Happyr\DoctrineSpecification\Filter\Filter;
  6. class ProfileListSpecification
  7. {
  8.     public function __construct(
  9.         private ?Filter $spec,
  10.         private ?ISpecification $recommendationSpec,
  11.         private ?array $additionalSpecs = null,
  12.         private array $genders = [Genders::FEMALE]
  13.     ) {}
  14.     public function spec(): ?Filter
  15.     {
  16.         return $this->spec;
  17.     }
  18.     public function recommendationSpec(): ?ISpecification
  19.     {
  20.         return $this->recommendationSpec;
  21.     }
  22.     public function additionalSpecs(): ?array
  23.     {
  24.         return $this->additionalSpecs;
  25.     }
  26.     public function genders(): ?array
  27.     {
  28.         return $this->genders;
  29.     }
  30. }