@@ -30,12 +30,12 @@ class Route implements \Serializable
30
30
private $ host = '' ;
31
31
32
32
/**
33
- * @var array
33
+ * @var string[]
34
34
*/
35
35
private $ schemes = array ();
36
36
37
37
/**
38
- * @var array
38
+ * @var string[]
39
39
*/
40
40
private $ methods = array ();
41
41
@@ -71,14 +71,14 @@ class Route implements \Serializable
71
71
*
72
72
* * compiler_class: A class name able to compile this route instance (RouteCompiler by default)
73
73
*
74
- * @param string $path The path pattern to match
75
- * @param array $defaults An array of default parameter values
76
- * @param array $requirements An array of requirements for parameters (regexes)
77
- * @param array $options An array of options
78
- * @param string $host The host pattern to match
79
- * @param string|array $schemes A required URI scheme or an array of restricted schemes
80
- * @param string|array $methods A required HTTP method or an array of restricted methods
81
- * @param string $condition A condition that should evaluate to true for the route to match
74
+ * @param string $path The path pattern to match
75
+ * @param array $defaults An array of default parameter values
76
+ * @param array $requirements An array of requirements for parameters (regexes)
77
+ * @param array $options An array of options
78
+ * @param string $host The host pattern to match
79
+ * @param string|string[] $schemes A required URI scheme or an array of restricted schemes
80
+ * @param string|string[] $methods A required HTTP method or an array of restricted methods
81
+ * @param string $condition A condition that should evaluate to true for the route to match
82
82
*/
83
83
public function __construct ($ path , array $ defaults = array (), array $ requirements = array (), array $ options = array (), $ host = '' , $ schemes = array (), $ methods = array (), $ condition = '' )
84
84
{
@@ -230,7 +230,7 @@ public function setHost($pattern)
230
230
* Returns the lowercased schemes this route is restricted to.
231
231
* So an empty array means that any scheme is allowed.
232
232
*
233
- * @return array The schemes
233
+ * @return string[] The schemes
234
234
*/
235
235
public function getSchemes ()
236
236
{
@@ -243,7 +243,7 @@ public function getSchemes()
243
243
*
244
244
* This method implements a fluent interface.
245
245
*
246
- * @param string|array $schemes The scheme or an array of schemes
246
+ * @param string|string[] $schemes The scheme or an array of schemes
247
247
*
248
248
* @return $this
249
249
*/
@@ -279,7 +279,7 @@ public function hasScheme($scheme)
279
279
* Returns the uppercased HTTP methods this route is restricted to.
280
280
* So an empty array means that any method is allowed.
281
281
*
282
- * @return array The methods
282
+ * @return string[] The methods
283
283
*/
284
284
public function getMethods ()
285
285
{
@@ -292,7 +292,7 @@ public function getMethods()
292
292
*
293
293
* This method implements a fluent interface.
294
294
*
295
- * @param string|array $methods The method or an array of methods
295
+ * @param string|string[] $methods The method or an array of methods
296
296
*
297
297
* @return $this
298
298
*/
0 commit comments