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

129 lines
2.0 KiB
PHP

<?php
namespace Psalm\Storage;
use Psalm\CodeLocation;
use Psalm\Type;
class FunctionLikeStorage
{
/**
* @var CodeLocation|null
*/
public $location;
/**
* @var array<int, FunctionLikeParameter>
*/
public $params = [];
/**
* @var array<string, Type\Union|null>
*/
public $param_types = [];
/**
* @var Type\Union|null
*/
public $return_type;
/**
* @var CodeLocation|null
*/
public $return_type_location;
/**
* @var Type\Union|null
*/
public $signature_return_type;
/**
* @var CodeLocation|null
*/
public $signature_return_type_location;
/**
* @var string
*/
public $cased_name;
/**
* @var array<int, string>
*/
public $suppressed_issues = [];
/**
* @var bool
*/
public $deprecated;
/**
* @var bool
*/
public $variadic;
/**
* @var bool
*/
public $returns_by_ref = false;
/**
* @var int
*/
public $required_param_count;
/**
* @var array<string, Type\Union>
*/
public $defined_constants = [];
/**
* @var array<string, bool>
*/
public $global_variables = [];
/**
* @var array<string, Type\Union>
*/
public $global_types = [];
/**
* @var array<string, string>|null
*/
public $template_types;
/**
* @var array<int, string>|null
*/
public $template_typeof_params;
/**
* @var bool
*/
public $has_template_return_type;
/**
* @var array<string, array<int, CodeLocation>>|null
*/
public $referencing_locations;
/**
* @var array<int, Assertion>
*/
public $assertions = [];
/**
* @var array<int, Assertion>
*/
public $if_true_assertions = [];
/**
* @var array<int, Assertion>
*/
public $if_false_assertions = [];
/**
* @var bool
*/
public $has_visitor_issues = false;
}