rector/tests/NodeVisitor/UpgradeDeprecation/ReplaceDeprecatedConstantNodeVisitor/ReplaceOldConstantNodeVisitor.php
2017-08-06 19:37:55 +02:00

24 lines
591 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';
}
}