2016-12-30 12:41:14 -05:00
|
|
|
<?php
|
|
|
|
namespace Psalm\Storage;
|
|
|
|
|
2017-02-08 00:28:26 -05:00
|
|
|
use Psalm\CodeLocation;
|
2016-12-30 12:41:14 -05:00
|
|
|
use Psalm\Type;
|
|
|
|
|
|
|
|
class ClassLikeStorage
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* A lookup table for public class constants
|
|
|
|
*
|
|
|
|
* @var array<string, Type\Union>
|
|
|
|
*/
|
|
|
|
public $public_class_constants = [];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* A lookup table for protected class constants
|
|
|
|
*
|
|
|
|
* @var array<string, Type\Union>
|
|
|
|
*/
|
|
|
|
public $protected_class_constants = [];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* A lookup table for private class constants
|
|
|
|
*
|
|
|
|
* @var array<string, Type\Union>
|
|
|
|
*/
|
|
|
|
public $private_class_constants = [];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var bool
|
|
|
|
*/
|
2017-07-25 16:11:02 -04:00
|
|
|
public $populated = false;
|
2016-12-30 12:41:14 -05:00
|
|
|
|
2016-12-30 15:53:35 -05:00
|
|
|
/**
|
|
|
|
* @var bool
|
|
|
|
*/
|
|
|
|
public $reflected = false;
|
|
|
|
|
2017-01-02 15:31:18 -05:00
|
|
|
/**
|
2017-07-08 21:19:16 -04:00
|
|
|
* @var bool
|
|
|
|
*/
|
|
|
|
public $all_properties_set_in_constructor = false;
|
|
|
|
|
|
|
|
/**
|
2017-02-09 20:35:17 -05:00
|
|
|
* @var bool
|
|
|
|
*/
|
|
|
|
public $deprecated = false;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var string
|
2017-01-02 15:31:18 -05:00
|
|
|
*/
|
2017-02-08 00:28:26 -05:00
|
|
|
public $name;
|
2017-01-02 15:31:18 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @var array<string, string>
|
|
|
|
*/
|
|
|
|
public $aliased_classes;
|
|
|
|
|
2016-12-30 12:41:14 -05:00
|
|
|
/**
|
|
|
|
* Is this class user-defined
|
|
|
|
*
|
|
|
|
* @var bool
|
|
|
|
*/
|
2017-01-18 00:33:48 -05:00
|
|
|
public $user_defined = false;
|
2016-12-30 12:41:14 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Interfaces this class implements
|
|
|
|
*
|
2017-07-25 16:11:02 -04:00
|
|
|
* @var array<string, string>
|
2016-12-30 12:41:14 -05:00
|
|
|
*/
|
|
|
|
public $class_implements = [];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Parent interfaces
|
|
|
|
*
|
2017-07-25 16:11:02 -04:00
|
|
|
* @var array<string, string>
|
2016-12-30 12:41:14 -05:00
|
|
|
*/
|
|
|
|
public $parent_interfaces = [];
|
|
|
|
|
2017-01-02 15:31:18 -05:00
|
|
|
/**
|
|
|
|
* Parent interfaces
|
|
|
|
*
|
|
|
|
* @var array<string>
|
|
|
|
*/
|
|
|
|
public $parent_classes = [];
|
|
|
|
|
2016-12-30 12:41:14 -05:00
|
|
|
/**
|
2017-02-08 00:28:26 -05:00
|
|
|
* @var CodeLocation|null
|
2016-12-30 12:41:14 -05:00
|
|
|
*/
|
2017-02-08 00:28:26 -05:00
|
|
|
public $location;
|
2017-01-19 23:45:21 -05:00
|
|
|
|
2017-01-20 00:10:10 -05:00
|
|
|
/**
|
|
|
|
* @var bool
|
|
|
|
*/
|
|
|
|
public $abstract = false;
|
|
|
|
|
2016-12-30 12:41:14 -05:00
|
|
|
/**
|
2017-07-25 16:11:02 -04:00
|
|
|
* @var array<string, string>
|
2016-12-30 12:41:14 -05:00
|
|
|
*/
|
|
|
|
public $used_traits = [];
|
2016-12-30 15:53:35 -05:00
|
|
|
|
2017-07-25 16:11:02 -04:00
|
|
|
/**
|
|
|
|
* @var array<string, string>
|
|
|
|
*/
|
|
|
|
public $trait_alias_map = [];
|
|
|
|
|
2017-06-30 01:24:45 -04:00
|
|
|
/**
|
|
|
|
* @var bool
|
|
|
|
*/
|
|
|
|
public $is_trait = false;
|
|
|
|
|
2016-12-30 15:53:35 -05:00
|
|
|
/**
|
|
|
|
* @var array<string, MethodStorage>
|
|
|
|
*/
|
|
|
|
public $methods = [];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var array<string, string>
|
|
|
|
*/
|
|
|
|
public $declaring_method_ids = [];
|
|
|
|
|
2016-12-31 11:49:04 -05:00
|
|
|
/**
|
|
|
|
* @var array<string, string>
|
|
|
|
*/
|
|
|
|
public $appearing_method_ids = [];
|
|
|
|
|
2016-12-30 15:53:35 -05:00
|
|
|
/**
|
|
|
|
* @var array<string, array<string>>
|
|
|
|
*/
|
|
|
|
public $overridden_method_ids = [];
|
2017-01-01 19:09:17 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @var array<string, PropertyStorage>
|
|
|
|
*/
|
|
|
|
public $properties = [];
|
|
|
|
|
2017-05-04 18:35:05 -04:00
|
|
|
/**
|
|
|
|
* @var array<string, Type\Union>
|
|
|
|
*/
|
2017-05-05 11:20:05 -04:00
|
|
|
public $pseudo_property_set_types = [];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var array<string, Type\Union>
|
|
|
|
*/
|
|
|
|
public $pseudo_property_get_types = [];
|
2017-05-04 18:35:05 -04:00
|
|
|
|
2017-01-01 19:09:17 -05:00
|
|
|
/**
|
|
|
|
* @var array<string, string>
|
|
|
|
*/
|
|
|
|
public $declaring_property_ids = [];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var array<string, string>
|
|
|
|
*/
|
|
|
|
public $appearing_property_ids = [];
|
2017-01-19 13:11:45 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @var array<string, string>
|
|
|
|
*/
|
|
|
|
public $inheritable_property_ids = [];
|
2017-02-09 20:35:17 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @var array<string, string>|null
|
|
|
|
*/
|
|
|
|
public $template_types;
|
2017-02-26 23:09:18 -05:00
|
|
|
|
|
|
|
/**
|
2017-02-27 18:24:20 -05:00
|
|
|
* @var array<string, array<int, CodeLocation>>|null
|
2017-02-26 23:09:18 -05:00
|
|
|
*/
|
|
|
|
public $referencing_locations;
|
2016-12-30 12:41:14 -05:00
|
|
|
}
|