LightnCandy\Compiler::compileLog PHP Метод

compileLog() защищенный статический Метод

Return compiled PHP code for a handlebars log token
protected static compileLog ( array\arraystring | integer> &$context, arrayinteger | string | array> &$vars, boolean $raw ) : string
$context array\arraystring | integer>
$vars arrayinteger | string | array>
$raw boolean is this {{{ token or not
Результат string Return compiled code segment for the token
    protected static function compileLog(&$context, &$vars, $raw)
    {
        array_shift($vars);
        $v = static::getVariableNames($context, $vars);
        return $context['ops']['seperator'] . static::getFuncName($context, 'lo', $v[1]) . "\$cx, {$v[0]}){$context['ops']['seperator']}";
    }