-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
yaf_application.stub.php
65 lines (47 loc) · 1.31 KB
/
yaf_application.stub.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
<?php
/** @generate-legacy-arginfo */
final class Yaf_Application {
/* constants */
/* properties */
static protected object $_app = NULL;
protected array $config = NULL;
protected object $dispatcher = NULL;
protected array $_modules = NULL;
protected bool $_running = false;
protected string $_environ = "product";
protected int $_err_no = 0;
protected string $_err_msg = "";
/* methods */
public function __construct(string|array $config, string $environ = NULL);
/**
* @return Yaf_Response_Abstract|FALSE
*/
public function run():object|false;
public function execute(mixed $callback):mixed;
public function environ():?string;
/**
* @return Yaf_Application|false|null
*/
public function bootstrap():object|false|null;
public function getConfig():?object;
public function getModules():?array;
/**
* @return Yaf_Dispatcher|NULL
*/
public function getDispatcher():?object;
/**
* @return Yaf_Application|NULL|FALSE
*/
public function setAppDirectory(string $directory):object|null|false;
public function getAppDirectory():?string;
public function getLastErrorNo():?int;
public function getLastErrorMsg():?string;
/**
* @return Yaf_Application|NULL
*/
public function clearLastError():?object;
/**
* @return Yaf_Application|NULL
*/
public static function app():?object;
}