PHP 8.2.31
Preview: ReplaceFuncCallArgumentDefaultValue.php Size: 1.27 KB
/opt/cpanel/ea-wappspector/vendor/rector/rector/rules/Arguments/ValueObject/ReplaceFuncCallArgumentDefaultValue.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;
    }
}

Directory Contents

Dirs: 0 × Files: 5

Name Size Perms Modified Actions
2.00 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1.65 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1000 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1.70 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1.27 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).