mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-01 00:40:52 +00:00
24 lines
590 B
PHP
24 lines
590 B
PHP
<?php declare(strict_types=1);
|
|
|
|
namespace Rector\Tests\NodeVisitor\UpgradeDeprecation\ReplaceDeprecatedConstantNodeVisitor;
|
|
|
|
use Rector\NodeVisitor\UpgradeDeprecation\AbstraceReplaceDeprecatedConstantNodeVisitor;
|
|
|
|
final class ReplaceOldConstantNodeVisitor extends AbstraceReplaceDeprecatedConstantNodeVisitor
|
|
{
|
|
public function getClassName(): string
|
|
{
|
|
return'ClassWithConstants';
|
|
}
|
|
|
|
public function getOldConstantName(): string
|
|
{
|
|
return 'OLD_CONSTANT';
|
|
}
|
|
|
|
public function getNewConstantName(): string
|
|
{
|
|
return 'NEW_CONSTANT';
|
|
}
|
|
}
|