mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 21:38:22 +01:00
46 lines
830 B
PHP
46 lines
830 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;
|
|
}
|
|
}
|