rector/rules/Removing/ValueObject/RemoveFuncCall.php

41 lines
801 B
PHP
Raw Normal View History

<?php
declare(strict_types=1);
namespace Rector\Removing\ValueObject;
final class RemoveFuncCall
{
/**
* @var string
*/
private $funcCall;
/**
* @var array<int, 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;
}
}