mirror of https://github.com/rectorphp/rector.git
33 lines
641 B
PHP
33 lines
641 B
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace Rector\Php70\ValueObject;
|
|
|
|
use PhpParser\Node\Expr;
|
|
final class ComparedExprs
|
|
{
|
|
/**
|
|
* @readonly
|
|
* @var \PhpParser\Node\Expr
|
|
*/
|
|
private $firstExpr;
|
|
/**
|
|
* @readonly
|
|
* @var \PhpParser\Node\Expr
|
|
*/
|
|
private $secondExpr;
|
|
public function __construct(Expr $firstExpr, Expr $secondExpr)
|
|
{
|
|
$this->firstExpr = $firstExpr;
|
|
$this->secondExpr = $secondExpr;
|
|
}
|
|
public function getFirstExpr() : Expr
|
|
{
|
|
return $this->firstExpr;
|
|
}
|
|
public function getSecondExpr() : Expr
|
|
{
|
|
return $this->secondExpr;
|
|
}
|
|
}
|