rector/rules/Removing/ValueObject/RemoveFuncCall.php
2021-05-11 10:40:34 +00:00

36 lines
787 B
PHP

<?php
declare (strict_types=1);
namespace Rector\Removing\ValueObject;
final class RemoveFuncCall
{
/**
* @var string
*/
private $funcCall;
/**
* @var mixed[]
*/
private $argumentPositionAndValues = [];
/**
* @param array<int, mixed[]> $argumentPositionAndValues
*/
public function __construct(string $funcCall, array $argumentPositionAndValues = [])
{
$this->funcCall = $funcCall;
$this->argumentPositionAndValues = $argumentPositionAndValues;
}
public function getFuncCall() : string
{
return $this->funcCall;
}
/**
* @return array<int, mixed[]>
*/
public function getArgumentPositionAndValues() : array
{
return $this->argumentPositionAndValues;
}
}