2021-05-03 23:54:09 +02:00
|
|
|
<?php
|
2021-12-15 04:58:32 +01:00
|
|
|
|
2021-05-03 23:54:09 +02:00
|
|
|
namespace Psalm\Storage;
|
|
|
|
|
2021-09-06 01:57:12 +02:00
|
|
|
use Psalm\CodeLocation;
|
|
|
|
|
2022-02-06 22:09:03 +01:00
|
|
|
final class EnumCaseStorage
|
2021-05-03 23:54:09 +02:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @var int|string|null
|
|
|
|
*/
|
|
|
|
public $value;
|
|
|
|
|
2021-09-06 01:57:12 +02:00
|
|
|
/** @var CodeLocation */
|
|
|
|
public $stmt_location;
|
|
|
|
|
2021-12-20 14:20:11 +01:00
|
|
|
/**
|
|
|
|
* @var bool
|
|
|
|
*/
|
|
|
|
public $deprecated = false;
|
|
|
|
|
2021-05-03 23:54:09 +02:00
|
|
|
/**
|
|
|
|
* @param int|string|null $value
|
|
|
|
*/
|
|
|
|
public function __construct(
|
2021-09-06 01:57:12 +02:00
|
|
|
$value,
|
|
|
|
CodeLocation $location
|
2021-05-03 23:54:09 +02:00
|
|
|
) {
|
|
|
|
$this->value = $value;
|
2021-09-06 01:57:12 +02:00
|
|
|
$this->stmt_location = $location;
|
2021-05-03 23:54:09 +02:00
|
|
|
}
|
|
|
|
}
|