protected static function getVariableNames(&$context, $vn, $blockParams = null) {
        $vars = array(array(), array());
        $exps = array();
        foreach ($vn as $i => $v) {
            $V = static::getVariableNameOrSubExpression($context, $v);
            if (is_string($i)) {
                $vars[1][] = "'$i'=>{$V[0]}";
            } else {
                $vars[0][] = $V[0];
            }
            $exps[] = $V[1];
        }
        $bp = $blockParams ? (',array(' . Expression::listString($blockParams) . ')') : '';
        return array('array(array(' . implode(',', $vars[0]) . '),array(' . implode(',', $vars[1]) . ")$bp)", $exps);
    }
protected static function getVariableNames(&$context, $vn, $blockParams = null) {
        $vars = array(array(), array());
        $exps = array();
        foreach ($vn as $i => $v) {
            $V = static::getVariableNameOrSubExpression($context, $v);
            if (is_string($i)) {
                $vars[1][] = "'$i'=>{$V[0]}";
            } else {
                $vars[0][] = $V[0];
            }
            $exps[] = $V[1];
        }
        $bp = $blockParams ? (',array(' . Expression::listString($blockParams) . ')') : '';
        return array('array(array(' . implode(',', $vars[0]) . '),array(' . implode(',', $vars[1]) . ")$bp)", $exps);
    }
protected static function getVariableNames ( & $ context , $ vn , $ blockParams = null ) { $ vars = array ( array ( ) , array ( ) ) ; $ exps = array ( ) ; foreach ( $ vn as $ i => $ v ) { $ V = static :: getVariableNameOrSubExpression ( $ context , $ v ) ; if ( is_string ( $ i ) ) { $ vars [ 1 ] [ ] = "'$i'=>{$V[0]}" ; } else { $ vars [ 0 ] [ ] = $ V [ 0 ] ; } $ exps [ ] = $ V [ 1 ] ; } $ bp = $ blockParams ? ( ',array(' . Expression :: listString ( $ blockParams ) . ')' ) : '' ; return array ( 'array(array(' . implode ( ',' , $ vars [ 0 ] ) . '),array(' . implode ( ',' , $ vars [ 1 ] ) . ")$bp)" , $ exps ) ; }
Get string presentation of variables

@param array<string,array|string|integer> $context current compile context
@param array<array> $vn variable name array.
@param array<string>|null $blockParams block param list

@return array<string|array> variable names

@expect array('array(array($in),array())', array('this')) when input array('flags'=>array('spvar'=>true)), array(null)
@expect array('array(array($in,$in),array())', array('this', 'this')) when input array('flags'=>array('spvar'=>true)), array(null, null)
@expect array('array(array(),array(\'a\'=>$in))', array('this')) when input array('flags'=>array('spvar'=>true)), array('a' => null)
Get string presentation of variables