@@ -16,12 +16,7 @@ class Response extends \Zend\Http\PhpEnvironment\Response implements \Magento\Fr
16
16
protected $ isRedirect = false ;
17
17
18
18
/**
19
- * Get header value by name.
20
- * Returns first found header by passed name.
21
- * If header with specified name was not found returns false.
22
- *
23
- * @param string $name
24
- * @return \Zend\Http\Header\HeaderInterface|bool
19
+ * {@inheritdoc}
25
20
*/
26
21
public function getHeader ($ name )
27
22
{
@@ -45,8 +40,7 @@ public function sendResponse()
45
40
}
46
41
47
42
/**
48
- * @param string $value
49
- * @return $this
43
+ * {@inheritdoc}
50
44
*/
51
45
public function appendBody ($ value )
52
46
{
@@ -56,8 +50,7 @@ public function appendBody($value)
56
50
}
57
51
58
52
/**
59
- * @param string $value
60
- * @return $this
53
+ * {@inheritdoc}
61
54
*/
62
55
public function setBody ($ value )
63
56
{
@@ -76,15 +69,7 @@ public function clearBody()
76
69
}
77
70
78
71
/**
79
- * Set a header
80
- *
81
- * If $replace is true, replaces any headers already defined with that
82
- * $name.
83
- *
84
- * @param string $name
85
- * @param string $value
86
- * @param boolean $replace
87
- * @return $this
72
+ * {@inheritdoc}
88
73
*/
89
74
public function setHeader ($ name , $ value , $ replace = false )
90
75
{
@@ -99,10 +84,7 @@ public function setHeader($name, $value, $replace = false)
99
84
}
100
85
101
86
/**
102
- * Remove header by name from header stack
103
- *
104
- * @param string $name
105
- * @return $this
87
+ * {@inheritdoc}
106
88
*/
107
89
public function clearHeader ($ name )
108
90
{
@@ -117,6 +99,7 @@ public function clearHeader($name)
117
99
118
100
/**
119
101
* Remove all headers
102
+ *
120
103
* @return $this
121
104
*/
122
105
public function clearHeaders ()
@@ -128,14 +111,7 @@ public function clearHeaders()
128
111
}
129
112
130
113
/**
131
- * Set redirect URL
132
- *
133
- * Sets Location header and response code. Forces replacement of any prior
134
- * redirects.
135
- *
136
- * @param string $url
137
- * @param int $code
138
- * @return $this
114
+ * {@inheritdoc}
139
115
*/
140
116
public function setRedirect ($ url , $ code = 302 )
141
117
{
@@ -146,10 +122,7 @@ public function setRedirect($url, $code = 302)
146
122
}
147
123
148
124
/**
149
- * Set HTTP response code to use with headers
150
- *
151
- * @param int $code
152
- * @return $this
125
+ * {@inheritdoc}
153
126
*/
154
127
public function setHttpResponseCode ($ code )
155
128
{
@@ -164,10 +137,7 @@ public function setHttpResponseCode($code)
164
137
}
165
138
166
139
/**
167
- * @param int|string $httpCode
168
- * @param null|int|string $version
169
- * @param null|string $phrase
170
- * @return $this
140
+ * {@inheritdoc}
171
141
*/
172
142
public function setStatusHeader ($ httpCode , $ version = null , $ phrase = null )
173
143
{
@@ -182,9 +152,7 @@ public function setStatusHeader($httpCode, $version = null, $phrase = null)
182
152
}
183
153
184
154
/**
185
- * Get response code
186
- *
187
- * @return int
155
+ * {@inheritdoc}
188
156
*/
189
157
public function getHttpResponseCode ()
190
158
{
0 commit comments