mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-19 06:18:07 +01:00
cdc3b7adef
f451b0b8e1
[PHP 8.0] Bump to promoted properties (#4)
31 lines
670 B
PHP
31 lines
670 B
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace Rector\Php71\ValueObject;
|
|
|
|
use PhpParser\Node\Expr;
|
|
final class TwoNodeMatch
|
|
{
|
|
/**
|
|
* @var \PhpParser\Node\Expr
|
|
*/
|
|
private $firstExpr;
|
|
/**
|
|
* @var \PhpParser\Node\Expr
|
|
*/
|
|
private $secondExpr;
|
|
public function __construct(\PhpParser\Node\Expr $firstExpr, \PhpParser\Node\Expr $secondExpr)
|
|
{
|
|
$this->firstExpr = $firstExpr;
|
|
$this->secondExpr = $secondExpr;
|
|
}
|
|
public function getFirstExpr() : \PhpParser\Node\Expr
|
|
{
|
|
return $this->firstExpr;
|
|
}
|
|
public function getSecondExpr() : \PhpParser\Node\Expr
|
|
{
|
|
return $this->secondExpr;
|
|
}
|
|
}
|