mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-23 19:24:48 +01:00
86682e4848
Less doc, move from NodeRemover from AbstractRector - use directly or remove nodes right at the moment - that creates safer tree (#2741)
34 lines
712 B
PHP
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;
|
|
}
|
|
}
|