| Current Path : /home/rtorresani/www/vendor/rector/rector/rules/TypeDeclaration/ValueObject/ |
| Current File : //home/rtorresani/www/vendor/rector/rector/rules/TypeDeclaration/ValueObject/AssignToVariable.php |
<?php
declare (strict_types=1);
namespace Rector\TypeDeclaration\ValueObject;
use PhpParser\Node\Expr;
final class AssignToVariable
{
/**
* @readonly
* @var string
*/
private $variableName;
/**
* @readonly
* @var \PhpParser\Node\Expr
*/
private $assignedExpr;
public function __construct(string $variableName, Expr $assignedExpr)
{
$this->variableName = $variableName;
$this->assignedExpr = $assignedExpr;
}
public function getVariableName() : string
{
return $this->variableName;
}
public function getAssignedExpr() : Expr
{
return $this->assignedExpr;
}
}