mirror of https://github.com/rectorphp/rector.git
33 lines
615 B
PHP
33 lines
615 B
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace Rector\NodeTypeResolver\ValueObject;
|
|
|
|
use PHPStan\Type\Type;
|
|
final class OldToNewType
|
|
{
|
|
/**
|
|
* @readonly
|
|
* @var \PHPStan\Type\Type
|
|
*/
|
|
private $oldType;
|
|
/**
|
|
* @readonly
|
|
* @var \PHPStan\Type\Type
|
|
*/
|
|
private $newType;
|
|
public function __construct(Type $oldType, Type $newType)
|
|
{
|
|
$this->oldType = $oldType;
|
|
$this->newType = $newType;
|
|
}
|
|
public function getOldType() : Type
|
|
{
|
|
return $this->oldType;
|
|
}
|
|
public function getNewType() : Type
|
|
{
|
|
return $this->newType;
|
|
}
|
|
}
|