PHP 8.2.31
Preview: ParamRename.php Size: 1.18 KB
/opt/cpanel/ea-wappspector/vendor/rector/rector/rules/Naming/ValueObject/ParamRename.php

<?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;
    }
}

Directory Contents

Dirs: 0 × Files: 5

Name Size Perms Modified Actions
682 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1.18 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
2.13 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
2.16 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1.91 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).