mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-18 22:08:00 +01:00
cdc3b7adef
f451b0b8e1
[PHP 8.0] Bump to promoted properties (#4)
32 lines
730 B
PHP
32 lines
730 B
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace Rector\CodingStyle\ValueObject;
|
|
|
|
use PhpParser\Node;
|
|
use PhpParser\Node\Expr;
|
|
final class NodeToRemoveAndConcatItem
|
|
{
|
|
/**
|
|
* @var \PhpParser\Node\Expr
|
|
*/
|
|
private $removedExpr;
|
|
/**
|
|
* @var \PhpParser\Node
|
|
*/
|
|
private $concatItemNode;
|
|
public function __construct(\PhpParser\Node\Expr $removedExpr, \PhpParser\Node $concatItemNode)
|
|
{
|
|
$this->removedExpr = $removedExpr;
|
|
$this->concatItemNode = $concatItemNode;
|
|
}
|
|
public function getRemovedExpr() : \PhpParser\Node\Expr
|
|
{
|
|
return $this->removedExpr;
|
|
}
|
|
public function getConcatItemNode() : \PhpParser\Node
|
|
{
|
|
return $this->concatItemNode;
|
|
}
|
|
}
|