<?php

namespace Comitium5\DesignerBundle\Factory\Search\Filter;

use Elastica\Query\BoolQuery;
use Elastica\Query\Range;

/**
 * Class DateMustFilter
 *
 * @author David Carrascosa <david@bab-soft.com>
 * @package Comitium5\DesignerBundle\Factory\Search\Filter
 */
class DateMustFilter extends DateShouldFilter
{
    /**
     * @param BoolQuery $boolQuery
     * @param Range $match
     */
    protected function addFilter(BoolQuery $boolQuery, Range $match): void
    {
        $boolQuery->addMust($match);
    }
}
