-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
yaf_session.stub.php
87 lines (66 loc) · 1.89 KB
/
yaf_session.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
<?php
/** @generate-legacy-arginfo */
final class Yaf_Session implements \Iterator, \Traversable, \ArrayAccess, \Countable {
/* constants */
/* properties */
static protected ?object $_instance = NULL;
protected ?array $_session = NULL;
protected bool $_started = false;
/* methods */
private function __construct();
/**
* @return Yaf_Session|NULL
*/
public static function getInstance():?object;
/**
* @return Yaf_Session
*/
public function start():object;
public function get(?string $name = NULL):mixed;
public function has(string $name):?bool;
public function set(string $name, mixed $value):?bool;
public function del(string $name):?bool;
/**
* @return Yaf_Session|NULL|FALSE
*/
public function clear():object|null|false;
/** Countable */
public function count():int { }
/** Iterator */
public function rewind():void { }
public function current():mixed { }
public function next():void { }
public function valid():bool { }
public function key():int|string|null|bool { }
/** ArrayAccess */
/**
* @implementation-alias Yaf_Session::get
*/
public function offsetGet(mixed $name):mixed;
/**
* @implementation-alias Yaf_Session::set
*/
public function offsetSet(mixed $name, mixed $value):void;
/**
* @implementation-alias Yaf_Session::del
*/
public function offsetUnSet(mixed $name):void;
/**
* @implementation-alias Yaf_Session::has
*/
public function offsetExists(mixed $name):bool;
/** @implementation-alias Yaf_Session::get */
public function __get(string $name):mixed;
/**
* @implementation-alias Yaf_Session::has
*/
public function __isset(string $name):bool;
/**
* @implementation-alias Yaf_Session::set
*/
public function __set(string $name, mixed $value):void;
/**
* @implementation-alias Yaf_Session::del
*/
public function __unset(string $name):void;
}