rector/rules/Removing/ValueObject/RemoveFuncCallArg.php
Tomas Votruba 089ad6e357 Updated Rector to commit 86682e4848dcfaecdb6dac7d07ffcb4cd47e69bf
86682e4848 Less doc, move from NodeRemover from AbstractRector - use directly or remove nodes right at the moment - that creates safer tree (#2741)
2022-08-06 21:53:15 +00:00

34 lines
712 B
PHP

<?php
declare (strict_types=1);
namespace Rector\Removing\ValueObject;
use Rector\Core\Validation\RectorAssert;
final class RemoveFuncCallArg
{
/**
* @readonly
* @var string
*/
private $function;
/**
* @readonly
* @var int
*/
private $argumentPosition;
public function __construct(string $function, int $argumentPosition)
{
$this->function = $function;
$this->argumentPosition = $argumentPosition;
RectorAssert::functionName($function);
}
public function getFunction() : string
{
return $this->function;
}
public function getArgumentPosition() : int
{
return $this->argumentPosition;
}
}