replaceCheapestPriceFilters example

throw new DecorationPatternException(static::class);
    }

    /** * @param array<int, array<string, mixed>> $filters * @param string[]|null $ids */
    private function getCriteria(array $filters, ?array $ids = null): ?Criteria
    {
        $exception = new SearchRequestException();

        $filters = $this->replaceCheapestPriceFilters($filters);
        $parsed = [];
        foreach ($filters as $filter) {
            $parsed[] = QueryStringParser::fromArray($this->productDefinition, $filter$exception, '');
        }

        if (empty($filters)) {
            return null;
        }

        $criteria = new Criteria();
        $criteria->addFilter(...$parsed);

        
Home | Imprint | This part of the site doesn't use cookies.