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)
47 lines
1.2 KiB
PHP
47 lines
1.2 KiB
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace Rector\DeadCode\ValueObject;
|
|
|
|
use Rector\DeadCode\Contract\ConditionInterface;
|
|
final class BinaryToVersionCompareCondition implements ConditionInterface
|
|
{
|
|
/**
|
|
* @readonly
|
|
*/
|
|
private \Rector\DeadCode\ValueObject\VersionCompareCondition $versionCompareCondition;
|
|
/**
|
|
* @readonly
|
|
*/
|
|
private string $binaryClass;
|
|
/**
|
|
* @readonly
|
|
* @var mixed
|
|
*/
|
|
private $expectedValue;
|
|
/**
|
|
* @param mixed $expectedValue
|
|
*/
|
|
public function __construct(\Rector\DeadCode\ValueObject\VersionCompareCondition $versionCompareCondition, string $binaryClass, $expectedValue)
|
|
{
|
|
$this->versionCompareCondition = $versionCompareCondition;
|
|
$this->binaryClass = $binaryClass;
|
|
$this->expectedValue = $expectedValue;
|
|
}
|
|
public function getVersionCompareCondition() : \Rector\DeadCode\ValueObject\VersionCompareCondition
|
|
{
|
|
return $this->versionCompareCondition;
|
|
}
|
|
public function getBinaryClass() : string
|
|
{
|
|
return $this->binaryClass;
|
|
}
|
|
/**
|
|
* @return mixed
|
|
*/
|
|
public function getExpectedValue()
|
|
{
|
|
return $this->expectedValue;
|
|
}
|
|
}
|