rector/rules/Arguments/ValueObject/ReplaceFuncCallArgumentDefaultValue.php
Tomas Votruba 503a6059f8 Updated Rector to commit a8922f7431c9c9188be501107ee7819e0130da4c
a8922f7431 skip temporarily match + throws downagrade in symfony/console, very unlikely to run
2023-06-11 23:01:39 +00:00

63 lines
1.3 KiB
PHP

<?php
declare (strict_types=1);
namespace Rector\Arguments\ValueObject;
use Rector\Arguments\Contract\ReplaceArgumentDefaultValueInterface;
final class ReplaceFuncCallArgumentDefaultValue implements ReplaceArgumentDefaultValueInterface
{
/**
* @readonly
* @var string
*/
private $function;
/**
* @readonly
* @var int
*/
private $position;
/**
* @readonly
* @var mixed
*/
private $valueBefore;
/**
* @readonly
* @var mixed
*/
private $valueAfter;
/**
* @param mixed $valueBefore
* @param mixed $valueAfter
*/
public function __construct(string $function, int $position, $valueBefore, $valueAfter)
{
$this->function = $function;
$this->position = $position;
$this->valueBefore = $valueBefore;
$this->valueAfter = $valueAfter;
}
public function getFunction() : string
{
return $this->function;
}
public function getPosition() : int
{
return $this->position;
}
/**
* @return mixed
*/
public function getValueBefore()
{
return $this->valueBefore;
}
/**
* @return mixed
*/
public function getValueAfter()
{
return $this->valueAfter;
}
}