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 14/** 15 * Represents a precedence change. 16 * 17 * @author Fabien Potencier <fabien@symfony.com> 18 */ 19class PrecedenceChange 20{ 21 public function __construct( 22 private string $package, 23 private string $version, 24 private int $newPrecedence, 25 ) { 26 } 27 28 public function getPackage(): string 29 { 30 return $this->package; 31 } 32 33 public function getVersion(): string 34 { 35 return $this->version; 36 } 37 38 public function getNewPrecedence(): int 39 { 40 return $this->newPrecedence; 41 } 42} 43