rector/rules/Php80/ValueObject/MatchResult.php
Tomas Votruba 6b02618a3b Updated Rector to commit 4bc378bb1846b292946f8c241092a79e863268f7
4bc378bb18 [PHP 8.0] Move more logic to MatchFactory (#2802)
2022-08-19 13:01:36 +00:00

33 lines
674 B
PHP

<?php
declare (strict_types=1);
namespace Rector\Php80\ValueObject;
use PhpParser\Node\Expr\Match_;
final class MatchResult
{
/**
* @readonly
* @var \PhpParser\Node\Expr\Match_
*/
private $match;
/**
* @readonly
* @var bool
*/
private $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;
}
}