1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-15 19:07:00 +01:00
psalm/src/Psalm/Storage/ClassLikeStorage.php

318 lines
5.6 KiB
PHP

<?php
namespace Psalm\Storage;
use Psalm\CodeLocation;
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 = [];
/**
* A lookup table for private class constants
*
* @var array<string, CodeLocation>
*/
public $class_constant_locations = [];
/**
* A lookup table for nodes of unresolvable public class constants
*
* @var array<string, \PhpParser\Node\Expr>
*/
public $public_class_constant_nodes = [];
/**
* A lookup table for nodes of unresolvable protected class constants
*
* @var array<string, \PhpParser\Node\Expr>
*/
public $protected_class_constant_nodes = [];
/**
* A lookup table for nodes of unresolvable private class constants
*
* @var array<string, \PhpParser\Node\Expr>
*/
public $private_class_constant_nodes = [];
/**
* Aliases to help Psalm understand constant refs
*
* @var ?\Psalm\Aliases
*/
public $aliases;
/**
* @var bool
*/
public $populated = false;
/**
* @var bool
*/
public $stubbed = false;
/**
* @var bool
*/
public $deprecated = false;
/**
* @var bool
*/
public $internal = false;
/**
* @var array<string, bool>
*/
public $deprecated_constants = [];
/**
* @var bool
*/
public $sealed_properties = false;
/**
* @var bool
*/
public $sealed_methods = false;
/**
* @var bool
*/
public $override_property_visibility = false;
/**
* @var bool
*/
public $override_method_visibility = false;
/**
* @var array<int, string>
*/
public $suppressed_issues = [];
/**
* @var string
*/
public $name;
/**
* Is this class user-defined
*
* @var bool
*/
public $user_defined = false;
/**
* Interfaces this class implements
*
* @var array<string, string>
*/
public $class_implements = [];
/**
* Parent interfaces
*
* @var array<string, string>
*/
public $parent_interfaces = [];
/**
* Parent classes
*
* @var array<string, string>
*/
public $parent_classes = [];
/**
* @var CodeLocation|null
*/
public $location;
/**
* @var bool
*/
public $abstract = false;
/**
* @var bool
*/
public $final = false;
/**
* @var array<string, string>
*/
public $used_traits = [];
/**
* @var array<string, string>
*/
public $trait_alias_map = [];
/**
* @var array<string, int>
*/
public $trait_visibility_map = [];
/**
* @var bool
*/
public $is_trait = false;
/**
* @var bool
*/
public $is_interface = false;
/**
* @var array<string, MethodStorage>
*/
public $methods = [];
/**
* @var array<string, MethodStorage>
*/
public $pseudo_methods = [];
/**
* @var array<string, string>
*/
public $declaring_method_ids = [];
/**
* @var array<string, string>
*/
public $appearing_method_ids = [];
/**
* @var array<string, array<string>>
*/
public $overridden_method_ids = [];
/**
* @var array<string, array<string>>
*/
public $interface_method_ids = [];
/**
* @var array<string, string>
*/
public $inheritable_method_ids = [];
/**
* @var array<string, array<string, bool>>
*/
public $potential_declaring_method_ids = [];
/**
* @var array<string, PropertyStorage>
*/
public $properties = [];
/**
* @var array<string, Type\Union>
*/
public $pseudo_property_set_types = [];
/**
* @var array<string, Type\Union>
*/
public $pseudo_property_get_types = [];
/**
* @var array<string, string>
*/
public $declaring_property_ids = [];
/**
* @var array<string, string>
*/
public $appearing_property_ids = [];
/**
* @var array<string, string>
*/
public $inheritable_property_ids = [];
/**
* @var array<string, array<string>>
*/
public $overridden_property_ids = [];
/**
* @var array<string, array{Type\Union, ?string}>|null
*/
public $template_types;
/**
* @var array<string, array<string, ?string>>|null
*/
public $template_type_extends;
/**
* @var array<string, array<int, Type\Atomic>>|null
*/
public $template_value_extends;
/**
* @var array<string, array<int, CodeLocation>>|null
*/
public $referencing_locations;
/**
* @var array<string, bool>
*/
public $initialized_properties = [];
/**
* @var array<string>
*/
public $invalid_dependencies = [];
/**
* A hash of the source file's name, contents, and this file's modified on date
*
* @var string
*/
public $hash = '';
/**
* @var bool
*/
public $has_visitor_issues = false;
/**
* @var bool
*/
public $has_docblock_issues = false;
/**
* @param string $name
*/
public function __construct($name)
{
$this->name = $name;
}
}