<?php

namespace Comitium5\DesignerBundle\Factory\Search\Filter;

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

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