2017-05-25 07:32:34 +02:00
|
|
|
<?php
|
2021-12-15 04:58:32 +01:00
|
|
|
|
2018-11-06 03:57:36 +01:00
|
|
|
namespace Psalm\Internal\Scanner;
|
2018-05-12 00:35:02 +02:00
|
|
|
|
2021-12-13 16:28:14 +01:00
|
|
|
use Psalm\Type\Union;
|
2017-05-25 07:32:34 +02:00
|
|
|
|
2018-12-02 00:37:49 +01:00
|
|
|
/**
|
|
|
|
* @internal
|
|
|
|
*/
|
2017-05-25 07:32:34 +02:00
|
|
|
class VarDocblockComment
|
|
|
|
{
|
|
|
|
/**
|
2021-12-13 16:28:14 +01:00
|
|
|
* @var ?Union
|
2017-05-25 07:32:34 +02:00
|
|
|
*/
|
|
|
|
public $type;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var string|null
|
|
|
|
*/
|
2021-09-26 23:24:07 +02:00
|
|
|
public $var_id;
|
2017-05-25 07:32:34 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @var int|null
|
|
|
|
*/
|
|
|
|
public $line_number;
|
|
|
|
|
2019-06-01 18:25:57 +02:00
|
|
|
/**
|
|
|
|
* @var int|null
|
|
|
|
*/
|
|
|
|
public $type_start;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var int|null
|
|
|
|
*/
|
|
|
|
public $type_end;
|
|
|
|
|
2017-05-25 07:32:34 +02:00
|
|
|
/**
|
2018-12-02 00:37:49 +01:00
|
|
|
* Whether or not the property is deprecated
|
2017-05-27 02:16:18 +02:00
|
|
|
*
|
|
|
|
* @var bool
|
2017-05-25 07:32:34 +02:00
|
|
|
*/
|
|
|
|
public $deprecated = false;
|
2018-12-02 00:37:49 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Whether or not the property is internal
|
|
|
|
*
|
|
|
|
* @var bool
|
|
|
|
*/
|
|
|
|
public $internal = false;
|
2019-05-11 16:45:25 +02:00
|
|
|
|
|
|
|
/**
|
2019-05-11 19:56:55 +02:00
|
|
|
* If set, the property is internal to the given namespace.
|
2019-05-11 16:45:25 +02:00
|
|
|
*
|
|
|
|
* @var null|string
|
|
|
|
*/
|
2021-09-26 23:24:07 +02:00
|
|
|
public $psalm_internal;
|
2019-08-11 22:01:37 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Whether or not the property is readonly
|
|
|
|
*
|
|
|
|
* @var bool
|
|
|
|
*/
|
|
|
|
public $readonly = false;
|
2019-10-15 22:25:27 +02:00
|
|
|
|
2020-02-02 21:35:12 +01:00
|
|
|
/**
|
|
|
|
* Whether or not to allow mutation by internal methods
|
|
|
|
*
|
|
|
|
* @var bool
|
|
|
|
*/
|
|
|
|
public $allow_private_mutation = false;
|
|
|
|
|
2019-10-15 22:25:27 +02:00
|
|
|
/**
|
2020-05-22 04:47:58 +02:00
|
|
|
* @var list<string>
|
2019-10-15 22:25:27 +02:00
|
|
|
*/
|
2020-05-22 04:47:58 +02:00
|
|
|
public $removed_taints = [];
|
2021-01-31 17:32:24 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @var array<int, string>
|
|
|
|
*/
|
|
|
|
public $suppressed_issues = [];
|
2021-02-24 16:14:04 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @var ?string
|
|
|
|
*/
|
|
|
|
public $description;
|
2017-05-25 07:32:34 +02:00
|
|
|
}
|