File manager - Edit - /var/www/payraty/helpdesk/vendor/rector/rector/rules/Naming/ValueObject/ParamRename.php
Back
<?php declare (strict_types=1); namespace Rector\Naming\ValueObject; use PhpParser\Node\Expr\Closure; use PhpParser\Node\Expr\Variable; use PhpParser\Node\Param; use PhpParser\Node\Stmt\ClassMethod; use PhpParser\Node\Stmt\Function_; use Rector\Naming\Contract\RenameParamValueObjectInterface; final class ParamRename implements RenameParamValueObjectInterface { /** * @readonly * @var string */ private $currentName; /** * @readonly * @var string */ private $expectedName; /** * @readonly * @var \PhpParser\Node\Param */ private $param; /** * @readonly * @var \PhpParser\Node\Expr\Variable */ private $variable; /** * @readonly * @var \PhpParser\Node\Stmt\ClassMethod|\PhpParser\Node\Stmt\Function_|\PhpParser\Node\Expr\Closure */ private $functionLike; /** * @param \PhpParser\Node\Stmt\ClassMethod|\PhpParser\Node\Stmt\Function_|\PhpParser\Node\Expr\Closure $functionLike */ public function __construct(string $currentName, string $expectedName, Param $param, Variable $variable, $functionLike) { $this->currentName = $currentName; $this->expectedName = $expectedName; $this->param = $param; $this->variable = $variable; $this->functionLike = $functionLike; } public function getCurrentName() : string { return $this->currentName; } public function getExpectedName() : string { return $this->expectedName; } /** * @return \PhpParser\Node\Stmt\ClassMethod|\PhpParser\Node\Stmt\Function_|\PhpParser\Node\Expr\Closure */ public function getFunctionLike() { return $this->functionLike; } public function getParam() : Param { return $this->param; } public function getVariable() : Variable { return $this->variable; } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings