mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-11 11:11:12 +01:00
7d36c3b0b9
a80cf5292d
revert to working scoper 0.14
40 lines
869 B
PHP
40 lines
869 B
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace Rector\Renaming\ValueObject;
|
|
|
|
use PHPStan\Type\ObjectType;
|
|
final class RenameAnnotation
|
|
{
|
|
/**
|
|
* @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 getObjectType() : \PHPStan\Type\ObjectType
|
|
{
|
|
return new \PHPStan\Type\ObjectType($this->type);
|
|
}
|
|
public function getOldAnnotation() : string
|
|
{
|
|
return $this->oldAnnotation;
|
|
}
|
|
public function getNewAnnotation() : string
|
|
{
|
|
return $this->newAnnotation;
|
|
}
|
|
}
|