2021-01-29 11:38:59 +01:00
|
|
|
<?php
|
|
|
|
|
2021-05-09 20:15:43 +00:00
|
|
|
declare (strict_types=1);
|
2021-01-29 11:38:59 +01:00
|
|
|
namespace Rector\Removing\ValueObject;
|
|
|
|
|
|
|
|
final class RemoveFuncCall
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
private $funcCall;
|
|
|
|
/**
|
2021-05-10 23:39:21 +00:00
|
|
|
* @var mixed[]
|
2021-01-29 11:38:59 +01:00
|
|
|
*/
|
2021-05-11 10:40:34 +00:00
|
|
|
private $argumentPositionAndValues = [];
|
2021-01-29 11:38:59 +01:00
|
|
|
/**
|
|
|
|
* @param array<int, mixed[]> $argumentPositionAndValues
|
|
|
|
*/
|
|
|
|
public function __construct(string $funcCall, array $argumentPositionAndValues = [])
|
|
|
|
{
|
|
|
|
$this->funcCall = $funcCall;
|
|
|
|
$this->argumentPositionAndValues = $argumentPositionAndValues;
|
|
|
|
}
|
2021-05-09 20:15:43 +00:00
|
|
|
public function getFuncCall() : string
|
2021-01-29 11:38:59 +01:00
|
|
|
{
|
|
|
|
return $this->funcCall;
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* @return array<int, mixed[]>
|
|
|
|
*/
|
2021-05-09 20:15:43 +00:00
|
|
|
public function getArgumentPositionAndValues() : array
|
2021-01-29 11:38:59 +01:00
|
|
|
{
|
|
|
|
return $this->argumentPositionAndValues;
|
|
|
|
}
|
|
|
|
}
|