-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
yaf_config.stub.php
99 lines (67 loc) · 2.72 KB
/
yaf_config.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
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
<?php
/** @generate-legacy-arginfo */
abstract class Yaf_Config_Abstract implements \Iterator, \Traversable, \ArrayAccess, \Countable {
/* constants */
/* properties */
protected ?array $_config = NULL;
protected bool $_readonly = 0;
/* methods */
public function count():int { }
public function rewind():void { }
public function current():mixed { }
public function next():void { }
public function valid():bool { }
public function key():int|string|null|bool { }
/* @tentative-return-type */
public function __isset(string $name):bool {}
public function __get(string $name):mixed {}
/**
* @implementation-alias Yaf_Config_Abstract::get
*/
public function offsetGet(mixed $name):mixed {}
/**
* @implementation-alias Yaf_Config_Abstract::set
*/
public function offsetSet(mixed $name, mixed $value):void {}
public function offsetUnSet(mixed $name):void {}
/**
* @implementation-alias Yaf_Config_Abstract::__isset
*/
public function offsetExists(mixed $name):bool {}
abstract public function get(?string $name = NULL):mixed;
abstract public function set(string $name, mixed $value):bool;
abstract public function readonly():bool;
abstract public function toArray():array;
}
final class Yaf_Config_Simple extends Yaf_Config_Abstract implements \Iterator, \Traversable, \ArrayAccess, \Countable {
/* constants */
/* properties */
/* methods */
public function __construct(array|string $config_file, ?string $section = NULL) {}
public function __isset(string $name):bool {}
public function __set(string $name, mixed $value):void {}
public function get(?string $name = NULL):mixed {}
public function set(string $name, mixed $value):bool {}
public function readonly():bool {}
/** @implementation-alias Yaf_Config_Simple::get */
public function offsetGet(mixed $name):mixed {}
/** @implementation-alias Yaf_Config_Simple::set */
public function offsetSet(mixed $name, mixed $value):void {}
public function offsetUnSet(mixed $name):void {}
}
final class Yaf_Config_Ini extends Yaf_Config_Abstract implements \Iterator, \Traversable, \ArrayAccess, \Countable {
/* constants */
/* properties */
protected bool $_readonly = 1;
/* methods */
public function __construct(array|string $config_file, ?string $section = NULL) {}
public function __isset(string $name):bool {}
public function get(?string $name = NULL):mixed {}
public function set(string $name, mixed $value):bool {}
public function readonly():bool {}
/** @implementation-alias Yaf_Config_Ini::get */
public function offsetGet(mixed $name):mixed {}
/** @implementation-alias Yaf_Config_Ini::set */
public function offsetSet(mixed $name, mixed $value):void {}
public function __set(mixed $name, mixed $value):void {}
}