<?php

namespace Comitium5\DesignerBundle\Factory\Search\Filter;

use Elastica\Query\BoolQuery;
use Elastica\Query\Match;

/**
 * Class LocaleMustFilter
 *
 * @author Carles Gómez <carles@bab-soft.com>
 * @package Comitium5\DesignerBundle\Factory\Search\Filter
 */
class LocaleMustFilter extends LocaleShouldFilter
{
    /**
     * @param BoolQuery $boolQuery
     * @param Match $match
     */
    protected function addFilter(BoolQuery $boolQuery, Match $match): void
    {
        $boolQuery->addMust($match);
    }
}
