mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-23 03:02:33 +01:00
57 lines
1.1 KiB
PHP
57 lines
1.1 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Rector\DeadCode\ValueObject;
|
|
|
|
use Rector\DeadCode\Contract\ConditionInterface;
|
|
|
|
final class BinaryToVersionCompareCondition implements ConditionInterface
|
|
{
|
|
/**
|
|
* @var string
|
|
*/
|
|
private $binaryClass;
|
|
|
|
/**
|
|
* @var VersionCompareCondition
|
|
*/
|
|
private $versionCompareCondition;
|
|
|
|
/**
|
|
* @var mixed
|
|
*/
|
|
private $expectedValue;
|
|
|
|
/**
|
|
* @param mixed $expectedValue
|
|
*/
|
|
public function __construct(
|
|
VersionCompareCondition $versionCompareCondition,
|
|
string $binaryClass,
|
|
$expectedValue
|
|
) {
|
|
$this->versionCompareCondition = $versionCompareCondition;
|
|
$this->binaryClass = $binaryClass;
|
|
$this->expectedValue = $expectedValue;
|
|
}
|
|
|
|
public function getVersionCompareCondition(): VersionCompareCondition
|
|
{
|
|
return $this->versionCompareCondition;
|
|
}
|
|
|
|
public function getBinaryClass(): string
|
|
{
|
|
return $this->binaryClass;
|
|
}
|
|
|
|
/**
|
|
* @return mixed
|
|
*/
|
|
public function getExpectedValue()
|
|
{
|
|
return $this->expectedValue;
|
|
}
|
|
}
|