mirror of
https://github.com/danog/psalm.git
synced 2025-01-10 23:18:40 +01:00
34 lines
493 B
PHP
34 lines
493 B
PHP
|
<?php
|
||
|
namespace Psalm\Storage;
|
||
|
|
||
|
use Psalm\CodeLocation;
|
||
|
|
||
|
class EnumCaseStorage
|
||
|
{
|
||
|
/**
|
||
|
* @var CodeLocation
|
||
|
*/
|
||
|
public $location;
|
||
|
|
||
|
/**
|
||
|
* @var int|string|null
|
||
|
*/
|
||
|
public $value;
|
||
|
|
||
|
/**
|
||
|
* @var bool
|
||
|
*/
|
||
|
public $deprecated = false;
|
||
|
|
||
|
/**
|
||
|
* @param int|string|null $value
|
||
|
*/
|
||
|
public function __construct(
|
||
|
$value,
|
||
|
CodeLocation $location
|
||
|
) {
|
||
|
$this->value = $value;
|
||
|
$this->location = $location;
|
||
|
}
|
||
|
}
|