-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.phpstorm.meta.php
128 lines (127 loc) · 3.04 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
<?php
/*
* This file is part of Aplus Framework MVC Library.
*
* (c) Natan Felles <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPSTORM_META;
registerArgumentsSet(
'service_names',
'antiCsrf',
'autoloader',
'cache',
'console',
'database',
'debugger',
'exceptionHandler',
'language',
'locator',
'logger',
'mailer',
'migrator',
'request',
'response',
'router',
'session',
'validation',
'view',
);
registerArgumentsSet(
'rules',
'exist',
'notUnique',
'unique',
);
expectedArguments(
\Framework\Config\Config::get(),
0,
argumentsSet('service_names')
);
expectedArguments(
\Framework\Config\Config::set(),
0,
argumentsSet('service_names')
);
expectedArguments(
\Framework\Config\Config::add(),
0,
argumentsSet('service_names')
);
expectedArguments(
\Framework\Config\Config::getInstances(),
0,
argumentsSet('service_names')
);
expectedArguments(
\Framework\Config\Config::load(),
0,
argumentsSet('service_names')
);
expectedArguments(
\Framework\MVC\App::getService(),
0,
argumentsSet('service_names')
);
expectedArguments(
\Framework\MVC\App::setService(),
0,
argumentsSet('service_names')
);
expectedArguments(
\Framework\MVC\App::removeService(),
0,
argumentsSet('service_names')
);
override(\Framework\MVC\App::getService(), map([
'antiCsrf' => \Framework\HTTP\AntiCSRF::class,
'autoloader' => \Framework\Autoload\Autoloader::class,
'cache' => \Framework\Cache\Cache::class,
'console' => \Framework\CLI\Console::class,
'database' => \Framework\Database\Database::class,
'debugger' => \Framework\Debug\Debugger::class,
'exceptionHandler' => \Framework\Debug\ExceptionHandler::class,
'language' => \Framework\Language\Language::class,
'locator' => \Framework\Autoload\Locator::class,
'logger' => \Framework\Log\Logger::class,
'mailer' => \Framework\Email\Mailer::class,
'migrator' => \Framework\Database\Extra\Migrator::class,
'request' => \Framework\HTTP\Request::class,
'response' => \Framework\HTTP\Response::class,
'router' => \Framework\Routing\Router::class,
'session' => \Framework\Session\Session::class,
'validation' => \Framework\Validation\Validation::class,
'view' => \Framework\MVC\View::class,
]));
expectedArguments(
\Framework\Validation\Validation::getMessage(),
1,
argumentsSet('rules')
);
expectedArguments(
\Framework\Validation\Validation::isRuleAvailable(),
0,
argumentsSet('rules')
);
expectedArguments(
\Framework\Validation\Validation::setMessage(),
1,
argumentsSet('rules')
);
expectedArguments(
\Framework\Validation\Validation::setRule(),
1,
argumentsSet('rules')
);
registerArgumentsSet(
'order_by_directions',
'asc',
'desc',
);
expectedArguments(
\Framework\MVC\Model::paginate(),
4,
argumentsSet('order_by_directions')
);