Файл: upload/core/vendor/twig/twig/src/ExpressionParser/Infix/IsNotExpressionParser.php
Строк: 40
<?php
/*
* This file is part of Twig.
*
* (c) Fabien Potencier
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace TwigExpressionParserInfix;
use TwigNodeExpressionAbstractExpression;
use TwigNodeExpressionUnaryNotUnary;
use TwigParser;
use TwigToken;
/**
* @internal
*/
final class IsNotExpressionParser extends IsExpressionParser
{
public function parse(Parser $parser, AbstractExpression $expr, Token $token): AbstractExpression
{
return new NotUnary(parent::parse($parser, $expr, $token), $token->getLine());
}
public function getName(): string
{
return 'is not';
}
}