vendor/shopware/core/Framework/DataAbstractionLayer/Search/Filter/EqualsFilter.php line 11

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Shopware\Core\Framework\DataAbstractionLayer\Search\Filter;
  3. use Shopware\Core\Framework\Log\Package;
  4. /**
  5.  * @final tag:v6.5.0
  6.  */
  7. #[Package('core')]
  8. class EqualsFilter extends SingleFieldFilter
  9. {
  10.     /**
  11.      * @var string
  12.      */
  13.     protected $field;
  14.     /**
  15.      * @var string|float|int|null
  16.      */
  17.     protected $value;
  18.     public function __construct(string $field$value)
  19.     {
  20.         $this->field $field;
  21.         $this->value $value;
  22.     }
  23.     public function getField(): string
  24.     {
  25.         return $this->field;
  26.     }
  27.     public function getValue()
  28.     {
  29.         return $this->value;
  30.     }
  31.     public function getFields(): array
  32.     {
  33.         return [$this->field];
  34.     }
  35. }