2020-06-08 11:28:03 +02:00
|
|
|
<?php
|
|
|
|
|
2021-05-09 20:15:43 +00:00
|
|
|
declare (strict_types=1);
|
2020-06-08 11:28:03 +02:00
|
|
|
namespace Rector\Php80\ValueObject;
|
|
|
|
|
|
|
|
use PhpParser\Node\Expr\Assign;
|
|
|
|
use PhpParser\Node\Param;
|
|
|
|
use PhpParser\Node\Stmt\Property;
|
2020-12-10 00:40:38 +01:00
|
|
|
final class PropertyPromotionCandidate
|
2020-06-08 11:28:03 +02:00
|
|
|
{
|
|
|
|
/**
|
2021-08-23 00:20:32 +00:00
|
|
|
* @var \PhpParser\Node\Stmt\Property
|
2020-06-08 11:28:03 +02:00
|
|
|
*/
|
|
|
|
private $property;
|
|
|
|
/**
|
2021-08-23 00:20:32 +00:00
|
|
|
* @var \PhpParser\Node\Expr\Assign
|
2020-06-08 11:28:03 +02:00
|
|
|
*/
|
|
|
|
private $assign;
|
|
|
|
/**
|
2021-08-23 00:20:32 +00:00
|
|
|
* @var \PhpParser\Node\Param
|
2020-06-08 11:28:03 +02:00
|
|
|
*/
|
|
|
|
private $param;
|
2021-05-10 22:23:08 +00:00
|
|
|
public function __construct(\PhpParser\Node\Stmt\Property $property, \PhpParser\Node\Expr\Assign $assign, \PhpParser\Node\Param $param)
|
2020-06-08 11:28:03 +02:00
|
|
|
{
|
|
|
|
$this->property = $property;
|
|
|
|
$this->assign = $assign;
|
|
|
|
$this->param = $param;
|
|
|
|
}
|
2021-05-10 22:23:08 +00:00
|
|
|
public function getProperty() : \PhpParser\Node\Stmt\Property
|
2020-06-08 11:28:03 +02:00
|
|
|
{
|
|
|
|
return $this->property;
|
|
|
|
}
|
2021-05-10 22:23:08 +00:00
|
|
|
public function getAssign() : \PhpParser\Node\Expr\Assign
|
2020-06-08 11:28:03 +02:00
|
|
|
{
|
|
|
|
return $this->assign;
|
|
|
|
}
|
2021-05-10 22:23:08 +00:00
|
|
|
public function getParam() : \PhpParser\Node\Param
|
2020-06-08 11:28:03 +02:00
|
|
|
{
|
|
|
|
return $this->param;
|
|
|
|
}
|
|
|
|
}
|