rector/rules/Php70/ValueObject/ComparedExprs.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;
}
}