2020-08-26 12:54:53 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
namespace Rector\Renaming\ValueObject;
|
|
|
|
|
2020-09-12 23:19:08 +02:00
|
|
|
final class RenameAnnotation
|
2020-08-26 12:54:53 +02:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
private $type;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
private $oldAnnotation;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
private $newAnnotation;
|
|
|
|
|
|
|
|
public function __construct(string $type, string $oldAnnotation, string $newAnnotation)
|
|
|
|
{
|
|
|
|
$this->type = $type;
|
|
|
|
$this->oldAnnotation = $oldAnnotation;
|
|
|
|
$this->newAnnotation = $newAnnotation;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getType(): string
|
|
|
|
{
|
|
|
|
return $this->type;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getOldAnnotation(): string
|
|
|
|
{
|
|
|
|
return $this->oldAnnotation;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getNewAnnotation(): string
|
|
|
|
{
|
|
|
|
return $this->newAnnotation;
|
|
|
|
}
|
|
|
|
}
|