rector/rules/Arguments/ValueObject/RemoveMethodCallParam.php
Tomas Votruba 7e0a2dbc82 Updated Rector to commit 6ad7b03704e639c95759d14c67444009c3b93259
6ad7b03704 Revert Add class-string typehint to MethodCallRename (#2739)
2022-08-06 15:23:35 +00:00

43 lines
876 B
PHP

<?php
declare (strict_types=1);
namespace Rector\Arguments\ValueObject;
use PHPStan\Type\ObjectType;
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;
}
public function getObjectType() : ObjectType
{
return new ObjectType($this->class);
}
public function getMethodName() : string
{
return $this->methodName;
}
public function getParamPosition() : int
{
return $this->paramPosition;
}
}