mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-10 21:22:21 +00:00
3313a231b7
bb609b28e3
[Core] Always reset stopTraversal to false on next Rector visit (#4182)
31 lines
581 B
PHP
31 lines
581 B
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace Rector\NodeTypeResolver\ValueObject;
|
|
|
|
use PHPStan\Type\Type;
|
|
final class OldToNewType
|
|
{
|
|
/**
|
|
* @var \PHPStan\Type\Type
|
|
*/
|
|
private $oldType;
|
|
/**
|
|
* @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;
|
|
}
|
|
}
|