mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 05:18:18 +01:00
9a4a5b2bc5
eb5df4dde7
Use vendor-patches main branch (#6453)
31 lines
629 B
PHP
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;
|
|
}
|
|
}
|