mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 13:28:18 +01:00
9a4a5b2bc5
eb5df4dde7
Use vendor-patches main branch (#6453)
61 lines
1.2 KiB
PHP
61 lines
1.2 KiB
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace Rector\Arguments\ValueObject;
|
|
|
|
use Rector\Arguments\Contract\ReplaceArgumentDefaultValueInterface;
|
|
final class ReplaceFuncCallArgumentDefaultValue implements ReplaceArgumentDefaultValueInterface
|
|
{
|
|
/**
|
|
* @readonly
|
|
*/
|
|
private string $function;
|
|
/**
|
|
* @readonly
|
|
*/
|
|
private int $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;
|
|
}
|
|
}
|