2020-11-30 18:09:03 +01:00
|
|
|
<?php
|
|
|
|
namespace Psalm\Internal\Analyzer\Statements\Expression\Assignment;
|
|
|
|
|
2021-12-13 16:28:14 +01:00
|
|
|
use Psalm\Type\Union;
|
2020-11-30 18:09:03 +01:00
|
|
|
|
|
|
|
class AssignedProperty
|
|
|
|
{
|
|
|
|
/**
|
2021-12-13 16:28:14 +01:00
|
|
|
* @var Union
|
2020-11-30 18:09:03 +01:00
|
|
|
*/
|
|
|
|
public $property_type;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
public $id;
|
|
|
|
|
|
|
|
/**
|
2021-12-13 16:28:14 +01:00
|
|
|
* @var Union
|
2020-11-30 18:09:03 +01:00
|
|
|
*/
|
|
|
|
public $assignment_type;
|
|
|
|
|
|
|
|
public function __construct(
|
2021-12-13 16:28:14 +01:00
|
|
|
Union $property_type,
|
2020-11-30 18:09:03 +01:00
|
|
|
string $id,
|
2021-12-13 16:28:14 +01:00
|
|
|
Union $assignment_type
|
2020-11-30 18:09:03 +01:00
|
|
|
) {
|
|
|
|
$this->property_type = $property_type;
|
|
|
|
$this->id = $id;
|
|
|
|
$this->assignment_type = $assignment_type;
|
|
|
|
}
|
|
|
|
}
|