mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-15 05:15:04 +01:00
34 lines
720 B
PHP
34 lines
720 B
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace Rector\ChangesReporting\ValueObject;
|
|
|
|
use Rector\Core\Contract\Rector\RectorInterface;
|
|
final class RectorWithLineChange
|
|
{
|
|
/**
|
|
* @var \Rector\Core\Contract\Rector\RectorInterface
|
|
*/
|
|
private $rector;
|
|
/**
|
|
* @var int
|
|
*/
|
|
private $line;
|
|
public function __construct(\Rector\Core\Contract\Rector\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;
|
|
}
|
|
}
|