-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
yaf_response.stub.php
84 lines (62 loc) · 1.74 KB
/
yaf_response.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
<?php
/** @generate-legacy-arginfo */
abstract class Yaf_Response_Abstract {
/* constants */
/* properties */
protected array $_header = NULL;
protected array $_body = NULL;
protected bool $_sendheader = false;
/* methods */
public function __construct() {}
/**
* @param string $body
* @param string $name
* @return Yaf_Response_Abstract|NULL|FALSE
*/
public function setBody($body, $name = NULL) {}
/**
* @param string $body
* @param string $name
* @return Yaf_Response_Abstract|NULL|FALSE
*/
public function appendBody($body, $name = NULL) {}
/**
* @param string $body
* @param string $name
* @return Yaf_Response_Abstract|NULL|FALSE
*/
public function prependBody($body, $name = NULL) {}
/**
* @param string $name
* @return Yaf_Response_Abstract|NULL
*/
public function clearBody($name = NULL) {}
public function getBody(string $name = NULL):mixed {}
public function setRedirect(string $url):?bool {}
/**
* @return bool
*/
public function response() {}
public function __toString():string {}
}
class Yaf_Response_Http extends Yaf_Response_Abstract {
/* constants */
/* properties */
protected bool $_sendheader = true;
protected int $_response_code = 200;
/* methods */
public function setHeader(string $name, string $value, bool $replace = 0, int $response_code = 0):?bool {}
protected function setAllHeaders(array $headers):?bool {}
public function getHeader(string $name = NULL):mixed {}
/**
* @return Yaf_Response_Http|NULL|FALSE
*/
public function clearHeaders():object|null|false {}
public function setRedirect(string $url):?bool {}
public function response():?bool {}
}
class Yaf_Response_Cli extends Yaf_Response_Abstract {
/* constants */
/* properties */
/* methods */
}