<?php

declare (strict_types=1);
namespace Rector\NodeTypeResolver\ValueObject;

use PHPStan\Type\Type;
final class OldToNewType
{
    /**
     * @readonly
     */
    private Type $oldType;
    /**
     * @readonly
     */
    private Type $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;
    }
}
