Skip to content

Commit 2084f2e

Browse files
committed
Replace all PHPDoc comments for interface method implementations with {@inheritdoc}
1 parent 6f5592f commit 2084f2e

File tree

1 file changed

+10
-42
lines changed
  • lib/internal/Magento/Framework/HTTP/PhpEnvironment

1 file changed

+10
-42
lines changed

lib/internal/Magento/Framework/HTTP/PhpEnvironment/Response.php

Lines changed: 10 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,7 @@ class Response extends \Zend\Http\PhpEnvironment\Response implements \Magento\Fr
1616
protected $isRedirect = false;
1717

1818
/**
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}
2520
*/
2621
public function getHeader($name)
2722
{
@@ -45,8 +40,7 @@ public function sendResponse()
4540
}
4641

4742
/**
48-
* @param string $value
49-
* @return $this
43+
* {@inheritdoc}
5044
*/
5145
public function appendBody($value)
5246
{
@@ -56,8 +50,7 @@ public function appendBody($value)
5650
}
5751

5852
/**
59-
* @param string $value
60-
* @return $this
53+
* {@inheritdoc}
6154
*/
6255
public function setBody($value)
6356
{
@@ -76,15 +69,7 @@ public function clearBody()
7669
}
7770

7871
/**
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}
8873
*/
8974
public function setHeader($name, $value, $replace = false)
9075
{
@@ -99,10 +84,7 @@ public function setHeader($name, $value, $replace = false)
9984
}
10085

10186
/**
102-
* Remove header by name from header stack
103-
*
104-
* @param string $name
105-
* @return $this
87+
* {@inheritdoc}
10688
*/
10789
public function clearHeader($name)
10890
{
@@ -117,6 +99,7 @@ public function clearHeader($name)
11799

118100
/**
119101
* Remove all headers
102+
*
120103
* @return $this
121104
*/
122105
public function clearHeaders()
@@ -128,14 +111,7 @@ public function clearHeaders()
128111
}
129112

130113
/**
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}
139115
*/
140116
public function setRedirect($url, $code = 302)
141117
{
@@ -146,10 +122,7 @@ public function setRedirect($url, $code = 302)
146122
}
147123

148124
/**
149-
* Set HTTP response code to use with headers
150-
*
151-
* @param int $code
152-
* @return $this
125+
* {@inheritdoc}
153126
*/
154127
public function setHttpResponseCode($code)
155128
{
@@ -164,10 +137,7 @@ public function setHttpResponseCode($code)
164137
}
165138

166139
/**
167-
* @param int|string $httpCode
168-
* @param null|int|string $version
169-
* @param null|string $phrase
170-
* @return $this
140+
* {@inheritdoc}
171141
*/
172142
public function setStatusHeader($httpCode, $version = null, $phrase = null)
173143
{
@@ -182,9 +152,7 @@ public function setStatusHeader($httpCode, $version = null, $phrase = null)
182152
}
183153

184154
/**
185-
* Get response code
186-
*
187-
* @return int
155+
* {@inheritdoc}
188156
*/
189157
public function getHttpResponseCode()
190158
{

0 commit comments

Comments
 (0)