rector/rules/Transform/ValueObject/FuncCallToStaticCall.php
Tomas Votruba d56e7982d0 Updated Rector to commit dedd4b55fe3e03cae9bd5ac822cfdccd8deb3fb6
dedd4b55fe make node_helper.php safe for similar names
2021-05-09 20:15:43 +00:00

39 lines
827 B
PHP

<?php
declare (strict_types=1);
namespace Rector\Transform\ValueObject;
final class FuncCallToStaticCall
{
/**
* @var string
*/
private $oldFuncName;
/**
* @var string
*/
private $newClassName;
/**
* @var string
*/
private $newMethodName;
public function __construct(string $oldFuncName, string $newClassName, string $newMethodName)
{
$this->oldFuncName = $oldFuncName;
$this->newClassName = $newClassName;
$this->newMethodName = $newMethodName;
}
public function getOldFuncName() : string
{
return $this->oldFuncName;
}
public function getNewClassName() : string
{
return $this->newClassName;
}
public function getNewMethodName() : string
{
return $this->newMethodName;
}
}