1<?php 2 3/* 4 * This file is part of Twig. 5 * 6 * (c) Fabien Potencier 7 * 8 * For the full copyright and license information, please view the LICENSE 9 * file that was distributed with this source code. 10 */ 11 12namespace Twig\ExpressionParser; 13 14use Twig\Error\SyntaxError; 15use Twig\Node\Expression\AbstractExpression; 16use Twig\Parser; 17use Twig\Token; 18 19interface InfixExpressionParserInterface extends ExpressionParserInterface 20{ 21 /** 22 * @throws SyntaxError 23 */ 24 public function parse(Parser $parser, AbstractExpression $left, Token $token): AbstractExpression; 25 26 public function getAssociativity(): InfixAssociativity; 27} 28