private function getQueryClause($query, $clause)
    {
        $queries = $query->getMust();

        if ($clause == self::QUERY_CONDITION_NOT) {
            $queries = $query->getMustNot();
        } elseif ($clause == self::QUERY_CONDITION_SHOULD) {
            $queries = $query->getShould();
        }

        return $queries;
    }
private function getQueryClause($query, $clause)
    {
        $queries = $query->getMust();

        if ($clause == self::QUERY_CONDITION_NOT) {
            $queries = $query->getMustNot();
        } elseif ($clause == self::QUERY_CONDITION_SHOULD) {
            $queries = $query->getShould();
        }

        return $queries;
    }
private function getQueryClause ( $ query , $ clause ) { $ queries = $ query -> getMust ( ) ; if ( $ clause == self :: QUERY_CONDITION_NOT ) { $ queries = $ query -> getMustNot ( ) ; } elseif ( $ clause == self :: QUERY_CONDITION_SHOULD ) { $ queries = $ query -> getShould ( ) ; } return $ queries ; }
Return the list of queries associated to a clause.

@param QueryInterface $query  Bool query.
@param string         $clause Current clause (must, should, must_not).

@return QueryInterface[]
Return the list of queries associated to a clause .