-
Notifications
You must be signed in to change notification settings - Fork 2
/
.phpstorm.meta.php
140 lines (121 loc) · 5.52 KB
/
.phpstorm.meta.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<?php
// This file is not a CODE, it makes no sense and won't run or validate
// Its AST serves IDE as DATA source to make advanced type inference decisions.
namespace PHPSTORM_META {
exitPoint(\abort());
override(\container(), map(['' => '@']));
override(\ManaPHP\Helper\Container::get(), map(['' => '@']));
override(\Psr\Container\ContainerInterface::get(), map(['' => '@']));
override(\make(), map(['' => '@']));
override(\ManaPHP\Helper\Container::make(), map(['' => '@']));
override(\ManaPHP\Di\MakerInterface::make(), map(['' => '@']));
expectedArguments(\ManaPHP\Http\RequestInterface::server(), 0, array_keys($_SERVER)[$i]);
expectedArguments(
\ManaPHP\Http\ResponseInterface::json(), 0, ['code' => 0, 'msg' => '', 'data' => []]
);
registerArgumentsSet('wspClientEndpoint', 'admin', 'user');
expectedArguments(\ManaPHP\Ws\Pushing\ClientInterface::pushToId(), 2, argumentsSet('wspClientEndpoint'));
expectedArguments(\ManaPHP\Ws\Pushing\ClientInterface::pushToName(), 2, argumentsSet('wspClientEndpoint'));
expectedArguments(\ManaPHP\Ws\Pushing\ClientInterface::pushToRole(), 2, argumentsSet('wspClientEndpoint'));
expectedArguments(\ManaPHP\Ws\Pushing\ClientInterface::pushToAll(), 1, argumentsSet('wspClientEndpoint'));
expectedArguments(\ManaPHP\Ws\Pushing\ClientInterface::broadcast(), 1, argumentsSet('wspClientEndpoint'));
registerArgumentsSet(
'validator_constraint_type', ['bool', 'bit', 'int', 'float', 'array', 'mixed', 'iterable', 'mixed']
);
expectedArguments(
\ManaPHP\Validating\Constraint\Attribute\Type::__construct(), 0, argumentsSet('validator_constraint_type')
);
expectedArguments(
\json_stringify(), 1,
JSON_HEX_QUOT | JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX_APOS | JSON_NUMERIC_CHECK | JSON_PRETTY_PRINT
| JSON_FORCE_OBJECT | JSON_PRESERVE_ZERO_FRACTION | JSON_PARTIAL_OUTPUT_ON_ERROR
| JSON_UNESCAPED_LINE_TERMINATORS
);
registerArgumentsSet('amqp_exchange_type', 'direct', 'topic', 'fanout', 'headers');
expectedArguments(\ManaPHP\Amqp\Exchange::__construct(), 1, argumentsSet('amqp_exchange_type'));
registerArgumentsSet(
'amqp_exchange_features',
['passive' => false, 'durable' => true,
'auto_delete' => false, 'internal' => false,
'nowait' => false, 'arguments' => []]
);
expectedArguments(\ManaPHP\Amqp\Exchange::__construct(), 2, argumentsSet('amqp_exchange_features'));
registerArgumentsSet(
'amqp_queue_features', [
'passive' => false,
'durable' => true,
'exclusive' => false,
'auto_delete' => false,
'nowait' => false,
'arguments' => [],
]
);
expectedArguments(\ManaPHP\Amqp\Queue::__construct(), 1, argumentsSet('amqp_queue_features'));
registerArgumentsSet('manaphp_config', 'id', 'name', 'env', 'debug', 'params');
expectedArguments(\ManaPHP\Di\ConfigInterface::get(), 0, argumentsSet('manaphp_config'));
expectedArguments(\ManaPHP\Di\ConfigInterface::has(), 0, argumentsSet('manaphp_config'));
expectedArguments(\ManaPHP\Di\ConfigInterface::set(), 0, argumentsSet('manaphp_config'));
registerArgumentsSet(
'filter_http_cache',
["etag",
"max-age" => 1,
"Cache-Control" => "private, max-age=0, no-store, no-cache,must-revalidate"]
);
expectedArguments(
\ManaPHP\Http\Controller\Attribute\HttpCache::__construct(), 0,
argumentsSet('filter_http_cache')
);
registerArgumentsSet('logger_category', ['category' => '']);
expectedArguments(\Psr\Log\LoggerInterface::log(), 2, argumentsSet('logger_category'));
expectedArguments(\Psr\Log\LoggerInterface::debug(), 1, argumentsSet('logger_category'));
expectedArguments(\Psr\Log\LoggerInterface::info(), 1, argumentsSet('logger_category'));
expectedArguments(\Psr\Log\LoggerInterface::notice(), 1, argumentsSet('logger_category'));
expectedArguments(\Psr\Log\LoggerInterface::warning(), 1, argumentsSet('logger_category'));
expectedArguments(\Psr\Log\LoggerInterface::error(), 1, argumentsSet('logger_category'));
expectedArguments(\Psr\Log\LoggerInterface::critical(), 1, argumentsSet('logger_category'));
expectedArguments(\Psr\Log\LoggerInterface::alert(), 1, argumentsSet('logger_category'));
expectedArguments(\Psr\Log\LoggerInterface::emergency(), 1, argumentsSet('logger_category'));
registerArgumentsSet('request_header', [
"accept-charset",
"accept-encoding",
"accept-language",
"authorization",
"cache-control",
"connection",
"content-length",
"cookie",
"host",
"origin",
"referer",
"set-cookie",
"transfer-encoding",
"user-agent",
"if-none-match",
'x-real-ip',
'x-forwarded-for',
'x-requested-with',
]);
expectedArguments(\ManaPHP\Http\RequestInterface::header(), 0, argumentsSet('request_header'));
}
/**
* @xglobal $view ManaPHP\Mvc\ViewInterface
*/
/**
* @var \ManaPHP\Mvc\ViewInterface $view
* @var \ManaPHP\Rendering\RendererInterface $renderer
*/
$view = null;
unset($view, $renderer);
class_exists('\Elasticsearch\Client') || class_alias('\stdClass', '\Elasticsearch\Client');
function entity_fields($entity)
{
return array_keys(get_object_vars($entity));
}
function entity_field($entity)
{
return key(get_object_vars($entity));
}
function entity_var($entity)
{
return get_object_vars($entity);
}