Sulu\Bundle\ResourceBundle\Resource\FilterListBuilder::createConjunctionExpression PHP Метод

createConjunctionExpression() защищенный Метод

Creates a conjunction expression based on the given expressions and conjunction.
protected createConjunctionExpression ( array $expressions, string $conjunction ) : Sulu\Component\Rest\ListBuilder\Expression\ConjunctionExpressionInterface
$expressions array
$conjunction string
Результат Sulu\Component\Rest\ListBuilder\Expression\ConjunctionExpressionInterface
    protected function createConjunctionExpression(array $expressions, $conjunction)
    {
        // create the appropriate expression
        if (strtoupper($conjunction) === ListBuilderInterface::CONJUNCTION_AND) {
            return $this->listBuilder->createAndExpression($expressions);
        }
        return $this->listBuilder->createOrExpression($expressions);
    }