rector/rules/Php80/ValueObject/MatchResult.php
2024-11-20 15:58:53 +00:00

31 lines
629 B
PHP

<?php
declare (strict_types=1);
namespace Rector\Php80\ValueObject;
use PhpParser\Node\Expr\Match_;
final class MatchResult
{
/**
* @readonly
*/
private Match_ $match;
/**
* @readonly
*/
private bool $shouldRemoveNextStmt;
public function __construct(Match_ $match, bool $shouldRemoveNextStmt)
{
$this->match = $match;
$this->shouldRemoveNextStmt = $shouldRemoveNextStmt;
}
public function getMatch() : Match_
{
return $this->match;
}
public function shouldRemoveNextStmt() : bool
{
return $this->shouldRemoveNextStmt;
}
}