1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-15 10:57:08 +01:00
psalm/src/Psalm/Internal/Scanner/FunctionDocblockComment.php

131 lines
2.4 KiB
PHP
Raw Normal View History

2016-11-13 05:59:31 +01:00
<?php
2018-11-06 03:57:36 +01:00
namespace Psalm\Internal\Scanner;
2016-11-13 05:59:31 +01:00
/**
* @internal
*/
2016-11-13 05:59:31 +01:00
class FunctionDocblockComment
{
/**
* @var string|null
*/
public $return_type = null;
/**
* @var string|null
*/
public $return_type_description = null;
/**
* @var int|null
*/
public $return_type_start = null;
/**
* @var int|null
*/
public $return_type_end = null;
/**
* @var int|null
*/
public $return_type_line_number;
2016-11-13 05:59:31 +01:00
/**
2019-06-01 22:57:33 +02:00
* @var array<int, array{name:string, type:string, line_number: int, start: int, end: int}>
2016-11-13 05:59:31 +01:00
*/
public $params = [];
2019-01-19 19:32:43 +01:00
/**
* @var array<int, array{name:string, type:string, line_number: int}>
*/
public $params_out = [];
/**
* @var array<int, array{name:string, type:string, line_number: int}>
*/
public $globals = [];
2016-11-13 05:59:31 +01:00
/**
* Whether or not the function is deprecated
2017-05-27 02:16:18 +02:00
*
* @var bool
2016-11-13 05:59:31 +01:00
*/
public $deprecated = false;
/**
2019-05-11 19:56:55 +02:00
* If set, the function is internal to the given namespace.
*
* @var null|string
*/
public $psalm_internal = null;
/**
* Whether or not the function is internal
*
* @var bool
*/
public $internal = false;
2016-11-13 05:59:31 +01:00
/**
* Whether or not the function uses get_args
*
2017-05-27 02:16:18 +02:00
* @var bool
2016-11-13 05:59:31 +01:00
*/
public $variadic = false;
/**
* Whether or not to ignore the nullability of this function's return type
*
2017-05-27 02:16:18 +02:00
* @var bool
*/
public $ignore_nullable_return = false;
/**
* Whether or not to ignore the nullability of this function's return type
*
* @var bool
*/
public $ignore_falsable_return = false;
2016-11-13 05:59:31 +01:00
/**
* @var array<int, string>
2016-11-13 05:59:31 +01:00
*/
public $suppress = [];
/**
* @var array<int, string>
*/
public $throws = [];
2017-02-10 02:35:17 +01:00
/**
* @var array<int, array{string, ?string, ?string, bool}>
2017-02-10 02:35:17 +01:00
*/
public $templates = [];
2017-02-10 02:35:17 +01:00
/**
* @var array<int, array{template_type: string, param_name: string, line_number?: int}>
2017-02-10 02:35:17 +01:00
*/
public $template_typeofs = [];
/**
* @var array<int, array{type: string, param_name: string}>
*/
public $assertions = [];
/**
* @var array<int, array{type: string, param_name: string}>
*/
public $if_true_assertions = [];
/**
* @var array<int, array{type: string, param_name: string}>
*/
public $if_false_assertions = [];
2018-12-21 17:01:24 +01:00
/**
* @var bool
*/
public $inheritdoc = false;
2016-11-13 05:59:31 +01:00
}