src/RenderExpressionAndTermsCapableTrait.php
protected function _renderExpressionAndTerms(ExpressionInterface $expression, $context = null)
    {
        $renderedTerms = [];

        foreach ($expression->getTerms() as $_term) {
            $renderedTerms[] = $this->_renderExpressionTerm($_term, $context);
        }

        return $this->_compileExpressionTerms($expression, $renderedTerms, $context);
    }
protected function _renderExpressionAndTerms(ExpressionInterface $expression, $context = null)
    {
        $renderedTerms = [];

        foreach ($expression->getTerms() as $_term) {
            $renderedTerms[] = $this->_renderExpressionTerm($_term, $context);
        }

        return $this->_compileExpressionTerms($expression, $renderedTerms, $context);
    }
protected function _renderExpressionAndTerms ( ExpressionInterface $ expression , $ context = null ) { $ renderedTerms = [ ] ; foreach ( $ expression -> getTerms ( ) as $ _term ) { $ renderedTerms [ ] = $ this -> _renderExpressionTerm ( $ _term , $ context ) ; } return $ this -> _compileExpressionTerms ( $ expression , $ renderedTerms , $ context ) ; }
Renders a given expression and its terms.

@since [*next-version*]

@param ExpressionInterface                                $expression The expression instance to render.
@param array|ArrayAccess|stdClass|ContainerInterface|null $context    The context.

@return string|Stringable The rendered expression.
Renders a given expression and its terms .