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\Node; 13 14/** 15 * Represents a deprecation for a named node or attribute on a Node. 16 * 17 * @author Fabien Potencier <fabien@symfony.com> 18 */ 19class NameDeprecation 20{ 21 private $package; 22 private $version; 23 private $newName; 24 25 public function __construct(string $package = '', string $version = '', string $newName = '') 26 { 27 $this->package = $package; 28 $this->version = $version; 29 $this->newName = $newName; 30 } 31 32 public function getPackage(): string 33 { 34 return $this->package; 35 } 36 37 public function getVersion(): string 38 { 39 return $this->version; 40 } 41 42 public function getNewName(): string 43 { 44 return $this->newName; 45 } 46} 47