mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-09 17:41:24 +01:00
40 lines
923 B
PHP
40 lines
923 B
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace Rector\DeadCode\ValueObject;
|
|
|
|
use Rector\DeadCode\Contract\ConditionInterface;
|
|
final class VersionCompareCondition implements \Rector\DeadCode\Contract\ConditionInterface
|
|
{
|
|
/**
|
|
* @var int
|
|
*/
|
|
private $firstVersion;
|
|
/**
|
|
* @var int
|
|
*/
|
|
private $secondVersion;
|
|
/**
|
|
* @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;
|
|
}
|
|
}
|