mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-25 04:03:55 +01:00
34 lines
770 B
PHP
34 lines
770 B
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace Rector\DeadCode\ValueObject;
|
|
|
|
use PhpParser\Node\Expr\PropertyFetch;
|
|
use PhpParser\Node\Expr\Variable;
|
|
final class VariableAndPropertyFetchAssign
|
|
{
|
|
/**
|
|
* @readonly
|
|
* @var \PhpParser\Node\Expr\Variable
|
|
*/
|
|
private $variable;
|
|
/**
|
|
* @readonly
|
|
* @var \PhpParser\Node\Expr\PropertyFetch
|
|
*/
|
|
private $propertyFetch;
|
|
public function __construct(Variable $variable, PropertyFetch $propertyFetch)
|
|
{
|
|
$this->variable = $variable;
|
|
$this->propertyFetch = $propertyFetch;
|
|
}
|
|
public function getVariable() : Variable
|
|
{
|
|
return $this->variable;
|
|
}
|
|
public function getPropertyFetch() : PropertyFetch
|
|
{
|
|
return $this->propertyFetch;
|
|
}
|
|
}
|