mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-12 14:12:23 +00:00
34 lines
602 B
PHP
34 lines
602 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Rector\Core\ValueObject;
|
|
|
|
use PhpParser\Node;
|
|
use Rector\Core\Contract\Rector\RectorInterface;
|
|
|
|
final class RectifiedNode
|
|
{
|
|
/**
|
|
* @param class-string<RectorInterface> $rectorClass
|
|
*/
|
|
public function __construct(
|
|
private readonly string $rectorClass,
|
|
private readonly Node $node
|
|
) {
|
|
}
|
|
|
|
/**
|
|
* @return class-string<RectorInterface>
|
|
*/
|
|
public function getRectorClass(): string
|
|
{
|
|
return $this->rectorClass;
|
|
}
|
|
|
|
public function getNode(): Node
|
|
{
|
|
return $this->node;
|
|
}
|
|
}
|