PHP 8.2.31
Preview: VersionCompareCondition.php Size: 948 B
/opt/cpanel/ea-wappspector/vendor/rector/rector/rules/DeadCode/ValueObject/VersionCompareCondition.php

<?php

declare (strict_types=1);
namespace Rector\DeadCode\ValueObject;

use Rector\DeadCode\Contract\ConditionInterface;
final class VersionCompareCondition implements ConditionInterface
{
    /**
     * @readonly
     * @var int
     */
    private $firstVersion;
    /**
     * @readonly
     * @var int
     */
    private $secondVersion;
    /**
     * @readonly
     * @var string|null
     */
    private $compareSign;
    public function __construct(int $firstVersion, int $secondVersion, ?string $compareSign)
    {
        $this->firstVersion = $firstVersion;
        $this->secondVersion = $secondVersion;
        $this->compareSign = $compareSign;
    }
    public function getFirstVersion() : int
    {
        return $this->firstVersion;
    }
    public function getSecondVersion() : int
    {
        return $this->secondVersion;
    }
    public function getCompareSign() : ?string
    {
        return $this->compareSign;
    }
}

Directory Contents

Dirs: 0 × Files: 2

Name Size Perms Modified Actions
1.21 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
948 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download

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