rector/rules/renaming/src/ValueObject/RenameClassConstFetch.php

48 lines
898 B
PHP
Raw Normal View History

<?php
declare(strict_types=1);
namespace Rector\Renaming\ValueObject;
use Rector\Renaming\Contract\RenameClassConstFetchInterface;
final class RenameClassConstFetch implements RenameClassConstFetchInterface
{
/**
* @var string
*/
private $oldClass;
/**
* @var string
*/
private $oldConstant;
/**
* @var string
*/
private $newConstant;
public function __construct(string $oldClass, string $oldConstant, string $newConstant)
{
$this->oldClass = $oldClass;
$this->oldConstant = $oldConstant;
$this->newConstant = $newConstant;
}
public function getOldClass(): string
{
return $this->oldClass;
}
public function getOldConstant(): string
{
return $this->oldConstant;
}
public function getNewConstant(): string
{
return $this->newConstant;
}
}