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