2017-05-25 01:32:34 -04:00
|
|
|
<?php
|
2018-11-05 21:57:36 -05:00
|
|
|
namespace Psalm\Internal\Scanner;
|
2018-05-11 18:35:02 -04:00
|
|
|
|
|
|
|
use Psalm\Type;
|
2017-05-25 01:32:34 -04:00
|
|
|
|
2018-12-01 18:37:49 -05:00
|
|
|
/**
|
|
|
|
* @internal
|
|
|
|
*/
|
2017-05-25 01:32:34 -04:00
|
|
|
class VarDocblockComment
|
|
|
|
{
|
|
|
|
/**
|
2019-08-21 11:25:08 -04:00
|
|
|
* @var ?Type\Union
|
2017-05-25 01:32:34 -04:00
|
|
|
*/
|
|
|
|
public $type;
|
|
|
|
|
2018-01-01 20:04:03 -05:00
|
|
|
/**
|
2019-08-21 11:25:08 -04:00
|
|
|
* @var ?string
|
2018-01-01 20:04:03 -05:00
|
|
|
*/
|
|
|
|
public $original_type;
|
|
|
|
|
2017-05-25 01:32:34 -04:00
|
|
|
/**
|
|
|
|
* @var string|null
|
|
|
|
*/
|
|
|
|
public $var_id = null;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var int|null
|
|
|
|
*/
|
|
|
|
public $line_number;
|
|
|
|
|
2019-06-01 12:25:57 -04:00
|
|
|
/**
|
|
|
|
* @var int|null
|
|
|
|
*/
|
|
|
|
public $type_start;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var int|null
|
|
|
|
*/
|
|
|
|
public $type_end;
|
|
|
|
|
2017-05-25 01:32:34 -04:00
|
|
|
/**
|
2018-12-01 18:37:49 -05:00
|
|
|
* Whether or not the property is deprecated
|
2017-05-26 20:16:18 -04:00
|
|
|
*
|
|
|
|
* @var bool
|
2017-05-25 01:32:34 -04:00
|
|
|
*/
|
|
|
|
public $deprecated = false;
|
2018-12-01 18:37:49 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Whether or not the property is internal
|
|
|
|
*
|
|
|
|
* @var bool
|
|
|
|
*/
|
|
|
|
public $internal = false;
|
2019-05-11 15:45:25 +01:00
|
|
|
|
|
|
|
/**
|
2019-05-11 18:56:55 +01:00
|
|
|
* If set, the property is internal to the given namespace.
|
2019-05-11 15:45:25 +01:00
|
|
|
*
|
|
|
|
* @var null|string
|
|
|
|
*/
|
2019-05-11 20:39:53 +01:00
|
|
|
public $psalm_internal = null;
|
2019-08-11 16:01:37 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Whether or not the property is readonly
|
|
|
|
*
|
|
|
|
* @var bool
|
|
|
|
*/
|
|
|
|
public $readonly = false;
|
2017-05-25 01:32:34 -04:00
|
|
|
}
|