Вход Регистрация
Файл: upload/core/vendor/twig/twig/src/Node/Expression/ConstantExpression.php
Строк: 36
<?php

/*
 * This file is part of Twig.
 *
 * (c) Fabien Potencier
 * (c) Armin Ronacher
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace TwigNodeExpression;

use 
TwigCompiler;

/**
 * @final
 */
class ConstantExpression extends AbstractExpression implements SupportDefinedTestInterfaceReturnPrimitiveTypeInterface
{
    use 
SupportDefinedTestTrait;

    public function 
__construct($valueint $lineno)
    {
        
parent::__construct([], ['value' => $value], $lineno);
    }

    public function 
compile(Compiler $compiler): void
    
{
        
$compiler->repr($this->definedTest true $this->getAttribute('value'));
    }
}
Онлайн: 0
Реклама