rector/rules/DeadCode/ValueObject/BinaryToVersionCompareCondition.php
2024-11-20 15:58:53 +00:00

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;
}
}