Smile\ElasticsuiteCore\Search\Request\Query\Boolean::__construct PHP Метод

__construct() публичный Метод

Constructor.
public __construct ( array $must = [], array $should = [], array $mustNot = [], integer $minimumShouldMatch = 1, string $name = null, integer $boost = QueryInterface::DEFAULT_BOOST_VALUE, boolean $cached = false )
$must array Must clause queries.
$should array Should clause queries.
$mustNot array Must not clause queries.
$minimumShouldMatch integer Minimum should match query clause.
$name string Query name.
$boost integer Query boost.
$cached boolean Should the query be cached or not.
    public function __construct(array $must = [], array $should = [], array $mustNot = [], $minimumShouldMatch = 1, $name = null, $boost = QueryInterface::DEFAULT_BOOST_VALUE, $cached = false)
    {
        $this->must = $must;
        $this->should = $should;
        $this->mustNot = $mustNot;
        $this->boost = $boost;
        $this->name = $name;
        $this->minimumShouldMatch = $minimumShouldMatch;
        $this->cached = $cached;
    }