| Server IP : 66.29.153.156 / Your IP : 216.73.216.226 Web Server : LiteSpeed System : Linux premium322.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64 User : lastyfjz ( 1521) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/cpanel/ea-wappspector/vendor/rector/rector/rules/Naming/ValueObject/ |
Upload File : |
<?php
declare (strict_types=1);
namespace Rector\Naming\ValueObject;
use PhpParser\Node\Expr\Variable;
use PhpParser\Node\FunctionLike;
final class ParamRename
{
/**
* @readonly
* @var string
*/
private $currentName;
/**
* @readonly
* @var string
*/
private $expectedName;
/**
* @readonly
* @var \PhpParser\Node\Expr\Variable
*/
private $variable;
/**
* @readonly
* @var \PhpParser\Node\FunctionLike
*/
private $functionLike;
public function __construct(string $currentName, string $expectedName, Variable $variable, FunctionLike $functionLike)
{
$this->currentName = $currentName;
$this->expectedName = $expectedName;
$this->variable = $variable;
$this->functionLike = $functionLike;
}
public function getCurrentName() : string
{
return $this->currentName;
}
public function getExpectedName() : string
{
return $this->expectedName;
}
public function getFunctionLike() : FunctionLike
{
return $this->functionLike;
}
public function getVariable() : Variable
{
return $this->variable;
}
}