Skip to content

Commit f859033

Browse files
committed
fixed @return when returning this or static
1 parent a8c4f05 commit f859033

File tree

4 files changed

+28
-28
lines changed

4 files changed

+28
-28
lines changed

Matcher/Dumper/DumperCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function getIterator()
8686
/**
8787
* Returns the root of the collection.
8888
*
89-
* @return DumperCollection The root collection
89+
* @return self The root collection
9090
*/
9191
public function getRoot()
9292
{

Matcher/Dumper/DumperPrefixCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function setPrefix($prefix)
5050
*
5151
* @param DumperRoute $route The route
5252
*
53-
* @return DumperPrefixCollection The node the route was added to
53+
* @return self
5454
*
5555
* @throws \LogicException
5656
*/

RequestContext.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function __construct($baseUrl = '', $method = 'GET', $host = 'localhost',
6666
*
6767
* @param Request $request A Request instance
6868
*
69-
* @return RequestContext The current instance, implementing a fluent interface
69+
* @return $this
7070
*/
7171
public function fromRequest(Request $request)
7272
{
@@ -97,7 +97,7 @@ public function getBaseUrl()
9797
*
9898
* @param string $baseUrl The base URL
9999
*
100-
* @return RequestContext The current instance, implementing a fluent interface
100+
* @return $this
101101
*/
102102
public function setBaseUrl($baseUrl)
103103
{
@@ -121,7 +121,7 @@ public function getPathInfo()
121121
*
122122
* @param string $pathInfo The path info
123123
*
124-
* @return RequestContext The current instance, implementing a fluent interface
124+
* @return $this
125125
*/
126126
public function setPathInfo($pathInfo)
127127
{
@@ -147,7 +147,7 @@ public function getMethod()
147147
*
148148
* @param string $method The HTTP method
149149
*
150-
* @return RequestContext The current instance, implementing a fluent interface
150+
* @return $this
151151
*/
152152
public function setMethod($method)
153153
{
@@ -173,7 +173,7 @@ public function getHost()
173173
*
174174
* @param string $host The HTTP host
175175
*
176-
* @return RequestContext The current instance, implementing a fluent interface
176+
* @return $this
177177
*/
178178
public function setHost($host)
179179
{
@@ -197,7 +197,7 @@ public function getScheme()
197197
*
198198
* @param string $scheme The HTTP scheme
199199
*
200-
* @return RequestContext The current instance, implementing a fluent interface
200+
* @return $this
201201
*/
202202
public function setScheme($scheme)
203203
{
@@ -221,7 +221,7 @@ public function getHttpPort()
221221
*
222222
* @param int $httpPort The HTTP port
223223
*
224-
* @return RequestContext The current instance, implementing a fluent interface
224+
* @return $this
225225
*/
226226
public function setHttpPort($httpPort)
227227
{
@@ -245,7 +245,7 @@ public function getHttpsPort()
245245
*
246246
* @param int $httpsPort The HTTPS port
247247
*
248-
* @return RequestContext The current instance, implementing a fluent interface
248+
* @return $this
249249
*/
250250
public function setHttpsPort($httpsPort)
251251
{
@@ -269,7 +269,7 @@ public function getQueryString()
269269
*
270270
* @param string $queryString The query string (after "?")
271271
*
272-
* @return RequestContext The current instance, implementing a fluent interface
272+
* @return $this
273273
*/
274274
public function setQueryString($queryString)
275275
{
@@ -294,7 +294,7 @@ public function getParameters()
294294
*
295295
* @param array $parameters The parameters
296296
*
297-
* @return RequestContext The current instance, implementing a fluent interface
297+
* @return $this
298298
*/
299299
public function setParameters(array $parameters)
300300
{
@@ -333,7 +333,7 @@ public function hasParameter($name)
333333
* @param string $name A parameter name
334334
* @param mixed $parameter The parameter value
335335
*
336-
* @return RequestContext The current instance, implementing a fluent interface
336+
* @return $this
337337
*/
338338
public function setParameter($name, $parameter)
339339
{

Route.php

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public function getPattern()
159159
*
160160
* @param string $pattern The path pattern
161161
*
162-
* @return Route The current Route instance
162+
* @return $this
163163
*
164164
* @deprecated since version 2.2, to be removed in 3.0. Use setPath instead.
165165
*/
@@ -187,7 +187,7 @@ public function getPath()
187187
*
188188
* @param string $pattern The path pattern
189189
*
190-
* @return Route The current Route instance
190+
* @return $this
191191
*/
192192
public function setPath($pattern)
193193
{
@@ -216,7 +216,7 @@ public function getHost()
216216
*
217217
* @param string $pattern The host pattern
218218
*
219-
* @return Route The current Route instance
219+
* @return $this
220220
*/
221221
public function setHost($pattern)
222222
{
@@ -245,7 +245,7 @@ public function getSchemes()
245245
*
246246
* @param string|array $schemes The scheme or an array of schemes
247247
*
248-
* @return Route The current Route instance
248+
* @return $this
249249
*/
250250
public function setSchemes($schemes)
251251
{
@@ -294,7 +294,7 @@ public function getMethods()
294294
*
295295
* @param string|array $methods The method or an array of methods
296296
*
297-
* @return Route The current Route instance
297+
* @return $this
298298
*/
299299
public function setMethods($methods)
300300
{
@@ -329,7 +329,7 @@ public function getOptions()
329329
*
330330
* @param array $options The options
331331
*
332-
* @return Route The current Route instance
332+
* @return $this
333333
*/
334334
public function setOptions(array $options)
335335
{
@@ -347,7 +347,7 @@ public function setOptions(array $options)
347347
*
348348
* @param array $options The options
349349
*
350-
* @return Route The current Route instance
350+
* @return $this
351351
*/
352352
public function addOptions(array $options)
353353
{
@@ -367,7 +367,7 @@ public function addOptions(array $options)
367367
* @param string $name An option name
368368
* @param mixed $value The option value
369369
*
370-
* @return Route The current Route instance
370+
* @return $this
371371
*/
372372
public function setOption($name, $value)
373373
{
@@ -418,7 +418,7 @@ public function getDefaults()
418418
*
419419
* @param array $defaults The defaults
420420
*
421-
* @return Route The current Route instance
421+
* @return $this
422422
*/
423423
public function setDefaults(array $defaults)
424424
{
@@ -434,7 +434,7 @@ public function setDefaults(array $defaults)
434434
*
435435
* @param array $defaults The defaults
436436
*
437-
* @return Route The current Route instance
437+
* @return $this
438438
*/
439439
public function addDefaults(array $defaults)
440440
{
@@ -476,7 +476,7 @@ public function hasDefault($name)
476476
* @param string $name A variable name
477477
* @param mixed $default The default value
478478
*
479-
* @return Route The current Route instance
479+
* @return $this
480480
*/
481481
public function setDefault($name, $default)
482482
{
@@ -503,7 +503,7 @@ public function getRequirements()
503503
*
504504
* @param array $requirements The requirements
505505
*
506-
* @return Route The current Route instance
506+
* @return $this
507507
*/
508508
public function setRequirements(array $requirements)
509509
{
@@ -519,7 +519,7 @@ public function setRequirements(array $requirements)
519519
*
520520
* @param array $requirements The requirements
521521
*
522-
* @return Route The current Route instance
522+
* @return $this
523523
*/
524524
public function addRequirements(array $requirements)
525525
{
@@ -567,7 +567,7 @@ public function hasRequirement($key)
567567
* @param string $key The key
568568
* @param string $regex The regex
569569
*
570-
* @return Route The current Route instance
570+
* @return $this
571571
*/
572572
public function setRequirement($key, $regex)
573573
{
@@ -594,7 +594,7 @@ public function getCondition()
594594
*
595595
* @param string $condition The condition
596596
*
597-
* @return Route The current Route instance
597+
* @return $this
598598
*/
599599
public function setCondition($condition)
600600
{

0 commit comments

Comments
 (0)