mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-01 08:50:50 +00:00
40 lines
664 B
PHP
40 lines
664 B
PHP
|
<?php
|
||
|
|
||
|
declare(strict_types=1);
|
||
|
|
||
|
namespace Rector\ChangesReporting\ValueObject;
|
||
|
|
||
|
use Rector\Core\Contract\Rector\RectorInterface;
|
||
|
|
||
|
final class RectorWithLineChange
|
||
|
{
|
||
|
/**
|
||
|
* @var int
|
||
|
*/
|
||
|
private $line;
|
||
|
|
||
|
/**
|
||
|
* @var RectorInterface
|
||
|
*/
|
||
|
private $rector;
|
||
|
|
||
|
public function __construct(RectorInterface $rector, int $line)
|
||
|
{
|
||
|
$this->rector = $rector;
|
||
|
$this->line = $line;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @return class-string<RectorInterface>
|
||
|
*/
|
||
|
public function getRectorClass(): string
|
||
|
{
|
||
|
return get_class($this->rector);
|
||
|
}
|
||
|
|
||
|
public function getLine(): int
|
||
|
{
|
||
|
return $this->line;
|
||
|
}
|
||
|
}
|