PHP 8.2.31
Preview: RemoveMethodCallParam.php Size: 1000 B
/opt/cpanel/ea-wappspector/vendor/rector/rector/rules/Arguments/ValueObject/RemoveMethodCallParam.php

<?php

declare (strict_types=1);
namespace Rector\Arguments\ValueObject;

use PHPStan\Type\ObjectType;
use Rector\Validation\RectorAssert;
final class RemoveMethodCallParam
{
    /**
     * @readonly
     * @var string
     */
    private $class;
    /**
     * @readonly
     * @var string
     */
    private $methodName;
    /**
     * @readonly
     * @var int
     */
    private $paramPosition;
    public function __construct(string $class, string $methodName, int $paramPosition)
    {
        $this->class = $class;
        $this->methodName = $methodName;
        $this->paramPosition = $paramPosition;
        RectorAssert::className($class);
        RectorAssert::methodName($methodName);
    }
    public function getObjectType() : ObjectType
    {
        return new ObjectType($this->class);
    }
    public function getMethodName() : string
    {
        return $this->methodName;
    }
    public function getParamPosition() : int
    {
        return $this->paramPosition;
    }
}

Directory Contents

Dirs: 0 × Files: 5

Name Size Perms Modified Actions
2.00 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1.65 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1000 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1.70 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1.27 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download

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