File: /var/www/payments-gateway/vendor/twig/twig/src/ExpressionParser/Infix/IsNotExpressionParser.php
<?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 Twig\ExpressionParser\Infix;
use Twig\Node\Expression\AbstractExpression;
use Twig\Node\Expression\Unary\NotUnary;
use Twig\Parser;
use Twig\Token;
/**
* @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';
}
}